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/variadic/ |
Current File : //usr/local/src/php7/php-7.0.5/Zend/tests/variadic/removing_parameter_error.phpt |
--TEST-- It's not possible to remove required parameter before a variadic parameter --FILE-- <?php /* Theoretically this should be valid because it weakens the constraint, but * PHP does not allow this (for non-variadics), so I'm not allowing it here, too, * to stay consistent. */ interface DB { public function query($query, ...$params); } class MySQL implements DB { public function query(...$params) { } } ?> --EXPECTF-- Fatal error: Declaration of MySQL::query(...$params) must be compatible with DB::query($query, ...$params) in %s on line %d
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare