1--TEST--
2ReflectionClass::newInstanceArgs() - wrong arg type
3--CREDITS--
4Robin Fernandes <robinf@php.net>
5Steve Seear <stevseea@php.net>
6--FILE--
7<?php
8class A {
9    public function __construct($a, $b) {
10        echo "In constructor of class B with arg $a\n";
11    }
12}
13$rc = new ReflectionClass('A');
14$a = $rc->newInstanceArgs('x');
15var_dump($a);
16
17?>
18--EXPECTF--
19Fatal error: Uncaught TypeError: ReflectionClass::newInstanceArgs(): Argument #1 ($args) must be of type array, string given in %s:%d
20Stack trace:
21#0 %s(%d): ReflectionClass->newInstanceArgs('x')
22#1 {main}
23  thrown in %s on line %d
24