@@ -35,7 +35,7 @@ $values = [
3535 [],
3636 new StdClass ,
3737 new StringCapable ,
38- fopen ( " data:text/plain,foobar " , " r " )
38+ STDERR ,
3939];
4040
4141foreach ($ functions as $ type => $ function ) {
@@ -96,15 +96,15 @@ int(9223372036854775807)
9696}
9797*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, array given, called in %s on line %d
9898
99- *** Trying object(stdClass)#5 (0) {
99+ *** Trying object(stdClass)#%d (0) {
100100}
101101*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, stdClass given, called in %s on line %d
102102
103- *** Trying object(StringCapable)#6 (0) {
103+ *** Trying object(StringCapable)#%d (0) {
104104}
105105*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, StringCapable given, called in %s on line %d
106106
107- *** Trying resource(5 ) of type (stream)
107+ *** Trying resource(%d ) of type (stream)
108108*** Caught {closure:%s:%d}(): Argument #1 ($i) must be of type int, resource given, called in %s on line %d
109109
110110Testing 'float' type:
@@ -149,15 +149,15 @@ float(NAN)
149149}
150150*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, array given, called in %s on line %d
151151
152- *** Trying object(stdClass)#5 (0) {
152+ *** Trying object(stdClass)#%d (0) {
153153}
154154*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, stdClass given, called in %s on line %d
155155
156- *** Trying object(StringCapable)#6 (0) {
156+ *** Trying object(StringCapable)#%d (0) {
157157}
158158*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, StringCapable given, called in %s on line %d
159159
160- *** Trying resource(5 ) of type (stream)
160+ *** Trying resource(%d ) of type (stream)
161161*** Caught {closure:%s:%d}(): Argument #1 ($f) must be of type float, resource given, called in %s on line %d
162162
163163Testing 'string' type:
@@ -202,15 +202,15 @@ string(0) ""
202202}
203203*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, array given, called in %s on line %d
204204
205- *** Trying object(stdClass)#5 (0) {
205+ *** Trying object(stdClass)#%d (0) {
206206}
207207*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, stdClass given, called in %s on line %d
208208
209- *** Trying object(StringCapable)#6 (0) {
209+ *** Trying object(StringCapable)#%d (0) {
210210}
211211*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, StringCapable given, called in %s on line %d
212212
213- *** Trying resource(5 ) of type (stream)
213+ *** Trying resource(%d ) of type (stream)
214214*** Caught {closure:%s:%d}(): Argument #1 ($s) must be of type string, resource given, called in %s on line %d
215215
216216Testing 'bool' type:
@@ -255,15 +255,15 @@ bool(false)
255255}
256256*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, array given, called in %s on line %d
257257
258- *** Trying object(stdClass)#5 (0) {
258+ *** Trying object(stdClass)#%d (0) {
259259}
260260*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, stdClass given, called in %s on line %d
261261
262- *** Trying object(StringCapable)#6 (0) {
262+ *** Trying object(StringCapable)#%d (0) {
263263}
264264*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, StringCapable given, called in %s on line %d
265265
266- *** Trying resource(5 ) of type (stream)
266+ *** Trying resource(%d ) of type (stream)
267267*** Caught {closure:%s:%d}(): Argument #1 ($b) must be of type bool, resource given, called in %s on line %d
268268
269269Done
0 commit comments