File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ public function testConvertToReactStreamBasicResponse(): void
177177 $ body instanceof \Psr \Http \Message \StreamInterface ||
178178 is_resource ($ body ) ||
179179 method_exists ($ body , 'read ' ),
180- 'Body should be a stream-like object, got: ' . get_class ($ body )
180+ 'Body should be a stream-like object, got: ' . ( is_object ( $ body ) ? get_class ($ body) : gettype ( $ body ) )
181181 );
182182 }
183183
@@ -313,7 +313,7 @@ public function testConvertToReactStreamHandlesSeekableBody(): void
313313 $ body instanceof \Psr \Http \Message \StreamInterface ||
314314 is_resource ($ body ) ||
315315 method_exists ($ body , 'read ' ),
316- 'Body should be a stream-like object, got: ' . get_class ($ body )
316+ 'Body should be a stream-like object, got: ' . ( is_object ( $ body ) ? get_class ($ body) : gettype ( $ body ) )
317317 );
318318 }
319319}
You can’t perform that action at this time.
0 commit comments