1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-16 11:26:55 +01:00
psalm/src/Psalm/Checker/Statements/Expression/Call
Nicky Robinson 8e77ff1ce9 Throw error if magic getter or setter called for undefined property or invalid type specified with annotations (#500)
* Fix path to psalm

* If a magic getter or setter is used to access a property on a class
that is not defined but a `@property` annotation for the property
exists, throw an error. If no `@property` annotation exists, it's not
an error because you're allowed to make magic getters and setters do
crazy things.

Fixes #480

* Move logic to a better place to avoid duplicate checks

* Move logic into function

* Remove some nesting

* Check psalm-seal-properties and property type correctly
2018-02-09 19:37:09 -05:00
..
FunctionCallChecker.php Fix issues found by detecting docblock type inconsistencies 2018-02-06 13:40:28 -05:00
MethodCallChecker.php Throw error if magic getter or setter called for undefined property or invalid type specified with annotations (#500) 2018-02-09 19:37:09 -05:00
NewChecker.php Move a bunch of code into Codebase 2018-02-01 00:50:01 -05:00
StaticCallChecker.php Remove redundant code found by Psalm 2018-02-07 13:57:45 -05:00