Skip to content

false positive: by ref parameter and "is never written, only read" error #8781

@staabm

Description

@staabm

Bug report

a property-fetch with a by-ref parameter should be considered as write-usage

Code snippet that reproduces the problem

https://phpstan.org/r/3fc2bdba-46cc-4873-9b4d-81c089dadee3

Expected output

no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions