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/ext/reflection/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/reflection/tests/ReflectionClass_newInstanceArgs_002.phpt |
--TEST-- ReflectionClass::newInstanceArgs() - wrong arg type --CREDITS-- Robin Fernandes <robinf@php.net> Steve Seear <stevseea@php.net> --FILE-- <?php class A { public function __construct($a, $b) { echo "In constructor of class B with arg $a\n"; } } $rc = new ReflectionClass('A'); $a = $rc->newInstanceArgs('x'); var_dump($a); ?> --EXPECTF-- Fatal error: Uncaught TypeError: Argument 1 passed to ReflectionClass::newInstanceArgs() must be of the type array, string given in %s:8 Stack trace: #0 %s(%d): ReflectionClass->newInstanceArgs('x') #1 {main} thrown in %s on line 8
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare