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
stream_bucket_new() returns object|bool, but psalm thinks it's returning resource|bool.
This is a problem because the return value of stream_bucket_new() is often passed into stream_bucket_append() which psalm knows takes object as its second argument.
This way it's impossible to write a custom stream filter that passes psalm's InvalidArgument check.
I would have made a quick PR, but I'm not sure whether/if this has changed between PHP versions.
The text was updated successfully, but these errors were encountered:
stream_bucket_new()
returnsobject|bool
, but psalm thinks it's returningresource|bool
.This is a problem because the return value of
stream_bucket_new()
is often passed intostream_bucket_append()
which psalm knows takesobject
as its second argument.This way it's impossible to write a custom stream filter that passes psalm's
InvalidArgument
check.I would have made a quick PR, but I'm not sure whether/if this has changed between PHP versions.
The text was updated successfully, but these errors were encountered: