1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Files
archived-php-src/Zend/tests/traits/bug54441.phpt
T
2014-11-19 20:23:00 +00:00

20 lines
368 B
PHP

--TEST--
Bug #54441 (Changing trait static method visibility)
--FILE--
<?php
trait Foo {
public function bar() {}
}
class Boo {
use Foo {
bar as dontKnow;
dontKnow as protected;
}
}
?>
--EXPECTF--
Fatal error: The modifiers for the trait alias dontKnow() need to be changed in the same statement in which the alias is defined. Error in %s on line %d