Skip to content

FN: Append item to property is not checked #2689

@adaamz

Description

@adaamz

Bug report

Array item appending to typed property is not type checked.

Code snippet that reproduces the problem

https://phpstan.org/r/82a63ef2-cce6-4936-a3d0-37fefc92d524

also when the property is boolean there is "no error" https://phpstan.org/r/b0d411ba-c345-41a5-8a76-f2cea151aa64

Expected output

sth like https://phpstan.org/r/6fca031f-be60-4ff7-855a-af488c5d64b7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions