Your IP : 216.73.216.48


Current Path : /hdd/hdd21/main/php/php-7.3.1/Zend/tests/traits/
Upload File :
Current File : //hdd/hdd21/main/php/php-7.3.1/Zend/tests/traits/bug55137.phpt

--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