-
Bug
-
Resolution: Fixed
-
Minor
-
4.3, 4.4, 4.5
This is a very minor issue and I apologize in advance for taking up precious dev time, but I cannot figure out, why this was declared this way.
In the \core\plugininfo\base there is a PHPDoc annotating @property-read string component and I don't understand the reason for this. Especially since further down the property is declared again normally as public $component = ''; and literally every plugin is required to set this property in the version.php.
The reason this even came up as an issue for me is that PHPStorm rightfully complains in every single version.php file whenever it sees $plugin->component = "something"; that it is read-only. If there is a reason for this declaration in the base class, I would appreciate an explanation. If not, could we just remove this annotation? I could of course provide a tiny merge request for this.