diff options
Diffstat (limited to 'Zend/tests/traits/error_015.phpt')
-rw-r--r-- | Zend/tests/traits/error_015.phpt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Zend/tests/traits/error_015.phpt b/Zend/tests/traits/error_015.phpt index efcffea5f3..c1309bd713 100644 --- a/Zend/tests/traits/error_015.phpt +++ b/Zend/tests/traits/error_015.phpt @@ -5,17 +5,17 @@ Should warn about the conflict. <?php trait foo { - public function test() { return 3; } + public function test() { return 3; } } trait baz { - public function test() { return 4; } + public function test() { return 4; } } class bar { - use foo, baz { - baz::test as zzz; - } + use foo, baz { + baz::test as zzz; + } } $x = new bar; @@ -23,4 +23,4 @@ var_dump($x->test()); ?> --EXPECTF-- -Fatal error: Trait method test has not been applied, because there are collisions with other trait methods on bar in %s on line %d +Fatal error: Trait method baz::test has not been applied as bar::test, because of collision with foo::test in %s on line %d |