1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/traits/precedence_unknown_class.phpt
2021-03-19 16:04:47 +01:00

16 lines
237 B
PHP

--TEST--
Unknown class in absolute trait precedence reference
--FILE--
<?php
trait T {}
class C {
use T {
WrongClass::method insteadof C;
}
}
?>
--EXPECTF--
Fatal error: Could not find trait WrongClass in %s on line %d