-
-
Notifications
You must be signed in to change notification settings - Fork 947
Typed property mistaken as nullable #12723
Copy link
Copy link
Closed
phpstan/phpstan-src
#3930Description
Bug report
When a property is typed with a docblock, it is correctly seen as not nullable.
If it is typed in code, it is not.
Code snippet that reproduces the problem
Expected output
I would expect to see the same error for all three classes.
Did PHPStan help you today? Did it make you happy in any way?
It has been making me very happy for many years 👍
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels