Skip to content

stream_bucket_make_writeable gives Access to an undefined property object::$data. #7341

@VincentLanglet

Description

@VincentLanglet

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/4d1f3604-dd44-458a-813c-c043822c4b00

Expected output

I would expect no error here since it seems like the object has always a data property and a datalen property according to the doc:
https://www.php.net/manual/fr/function.stream-bucket-make-writeable.php#refsect1-function.stream-bucket-make-writeable-returnvalues

Is there a way to tell this to phpstan even if the stub is saying it's returning an object @ondrejmirtes ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions