xref: /PHP-5.5/Zend/tests/traits/bug54441.phpt (revision e150100f)
1--TEST--
2Bug #54441 (Changing trait static method visibility)
3--FILE--
4<?php
5
6trait Foo {
7  public function bar() {}
8}
9
10class Boo {
11  use Foo {
12    bar as dontKnow;
13    dontKnow as protected;
14  }
15}
16
17?>
18--EXPECTF--
19Fatal error: The modifiers for the trait alias dontKnow() need to be changed in the same statment in which the alias is defined. Error in %s on line %d
20