Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/Zend/tests/traits/ |
Current File : //usr/local/src/php7/php-7.0.5/Zend/tests/traits/language008b.phpt |
--TEST-- Visibility can be changed with the as aliasing construct as well. --FILE-- <?php error_reporting(E_ALL); trait HelloWorld { public function sayHello() { echo 'Hello World!'; } } class MyClass { use HelloWorld { sayHello as private sayHelloWorld; } public function callPrivateAlias() { $this->sayHelloWorld(); } } $o = new MyClass(); $o->sayHello(); $o->callPrivateAlias(); $o->sayHelloWorld(); ?> --EXPECTF-- Hello World!Hello World! Fatal error: Uncaught Error: Call to private method MyClass::sayHelloWorld() from context '' in %s:%d Stack trace: #0 {main} thrown in %s on line %d
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare