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/language011.phpt |
--TEST-- Aliasing on conflicting method should not cover up conflict. --FILE-- <?php error_reporting(E_ALL); trait Hello { public function sayHello() { echo 'Hello'; } } trait World { public function sayHello() { echo ' World!'; } } class MyClass { use Hello, World { sayHello as sayWorld; } } $o = new MyClass(); $o->sayHello(); $o->sayWorld(); ?> --EXPECTF-- Fatal error: Trait method sayHello has not been applied, because there are collisions with other trait methods on MyClass in %s on line %d
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare