summaryrefslogtreecommitdiff
path: root/Zend/tests/traits/bug55137.phpt
blob: 4a4e6e61a24d83347358f0074e48ab0e511b0bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
Bug #55137 (Changing trait static method visibility)
--FILE--
<?php

trait A {
   protected static function foo() { echo "abc\n"; }
   private static function bar() { echo "def\n"; }
}


class B {
   use A {
      A::foo as public;
      A::bar as public baz;
   }
}

B::foo();
B::baz();


?>
--EXPECT--
abc
def