You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According Laminas\Diactoros\Stream::setStream method implementation $stream variable (which contain JSON encoded string) will be used as a file path for fopen().
A quick workaround for this issue will be to use data://text/plain, notation before JSON encoded string which will open a stream using fopen(). More here https://evertpot.com/222/
The text was updated successfully, but these errors were encountered:
Package version:
1.1.1
.PHP version:
8.1
.An attempt to use
postJson()
,putJson()
ofFakeHttp
class instance:Causing error:
That's because here https://github.com/spiral/testing/blob/master/src/Http/FakeHttp.php#L255 a new
Laminas\Diactoros\Stream
instance is creating using JSON encoded string as a$stream
argument.According
Laminas\Diactoros\Stream::setStream
method implementation$stream
variable (which contain JSON encoded string) will be used as a file path forfopen()
.A quick workaround for this issue will be to use
data://text/plain,
notation before JSON encoded string which will open a stream usingfopen()
. More here https://evertpot.com/222/The text was updated successfully, but these errors were encountered: