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/ |
Current File : //usr/local/src/php7/php-7.0.5/Zend/tests/ns_071.phpt |
--TEST-- Testing parameter type-hinted (array) with default value inside namespace --FILE-- <?php namespace foo; class bar { public function __construct(array $x = NULL) { var_dump($x); } } new bar(null); new bar(new \stdclass); ?> --EXPECTF-- NULL Fatal error: Uncaught TypeError: Argument 1 passed to foo\bar::__construct() must be of the type array, object given, called in %s on line %d and defined in %s:%d Stack trace: #0 %s(%d): foo\bar->__construct(Object(stdClass)) #1 {main} thrown in %s on line %d
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare