You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is by design, in this case Psalm infers the type from the assignment in constructor. You should be able to turn it off with inferPropertyTypesFromConstructor flag in psalm.xml, but currently the flag is missing from the schema (and documentation).
Would be good to have it in the schema and the documentation!
Using: inferPropertyTypesFromConstructor="false"
I get:
Problem parsing psalm.xml:
Error on line 22:
Element '{https://getpsalm.org/schema/config}psalm', attribute 'inferPropertyTypesFromConstructor': The attribute 'inferPropertyTypesFromConstructor' is not allowed.
current: no error
expected: INFO: MissingPropertyType - Property test::$test does not have a declared type
https://psalm.dev/r/2971313991
The text was updated successfully, but these errors were encountered: