--TEST-- ReflectionClass::newInstanceArgs() - wrong arg type --CREDITS-- Robin Fernandes Steve Seear --FILE-- 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