-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Currently Config class has properties accessed via __get().
Other tools like phpstan/psalm yell at me that I can't get undefined property (to quote phpstan output Access to an undefined property PHP_CodeSniffer\Config::$basepath).
My idea is to annotate every magic property that available on the Config class with @property annotation. And also move the description of $this->settings to them.
I'm talking about this part of code
PHP_CodeSniffer/src/Config.php
Line 100 in dceec07
| private $settings = [ |