/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/bug62069_2.phpt
--TEST-- Bug #62069: binding wrong traits if they have same name methods (variation 2) --FILE-- <?php trait T1 { public function func() { echo "From T1\n"; } } trait T2 { public function func() { echo "From T2\n"; } } class Bar { public function func() { echo "From Bar\n"; } use T1 { func as f1; } use T2 { func as f2; } } $b = new Bar(); $b->f2(); ?> --EXPECTF-- Fatal error: An alias was defined for method func(), which exists in both T1 and T2. Use T1::func or T2::func to resolve the ambiguity in %s on line %d
Copyright ©2k19 -
Hexid
|
Tex7ure