Narrowing types for fields with setter injection #10831
Unanswered
javaDeveloperKid
asked this question in
Support
Replies: 1 comment 3 replies
-
@ondrejmirtes friendly ping 🙂 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When
setDependency()
is called then I want the static analyzer to know that the property$dependency
is not null.See https://phpstan.org/r/67b32c66-802e-4b92-b6bb-028ef8be08e7
Beta Was this translation helpful? Give feedback.
All reactions