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/bug60217b.phpt |
--TEST-- Bug #60217 (Requiring the same method from different traits and abstract methods have to be compatible) --FILE-- <?php trait TBroken1 { public abstract function foo($a); } trait TBroken2 { public abstract function foo($a, $b = 0); } class CBroken { use TBroken1, TBroken2; public function foo($a) { echo 'FOO'; } } $o = new CBroken; $o->foo(1); --EXPECTF-- Fatal error: Declaration of TBroken2::foo($a, $b = 0) must be compatible with TBroken1::foo($a) in %s on line %d
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare