summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/bug54441.phpt
blob: 3fe688b3b1a9496d4a9581b1f7db173ac4b31355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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