-
-
Notifications
You must be signed in to change notification settings - Fork 947
Context checking problem #5192
Copy link
Copy link
Closed
Description
Bug report
PHPStan 0.12.88 (0.12.90 too)
PHPStan doesn't check context/content of method used to check nullable property. So if you check property to NOT NULL and then call method on object inside of property, phpstan will throw error that you are trying to call method on Class|null.
Code snippet that reproduces the problem
Expected output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels