Skip to content

PHPStan requires PHPDoc tag @var for property for a simple case #4227

@sidz

Description

@sidz

Bug report

Property type and default value is set to exactly right type.
Starts to happens since 0.12.60.

Code snippet that reproduces the problem

https://phpstan.org/r/0295304e-e858-4849-98f4-83d0dbf9ed7a

Expected output

There should be no error detected in the code

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