Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #37699, comment 67


Ignore:
Timestamp:
09/01/2016 07:09:45 PM (8 years ago)
Author:
MikeSchinkel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37699, comment 67

    initial v1  
    22> This is not true, and as every major framework uses containers, PHPStorm has several ways of providing type inspection for them. For a very simple way of adding this, see the article here: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Advanced+Metadata
    33
    4 Yeah, I was afraid that would be offered up as "the solution."  As you can see, [https://youtrack.jetbrains.com/issue/WI-27830 I have been aware of this capability for a while], and in that link you can see that I think the way PhpStorm implements it is over-the-top complicated and it is very unlikely that most plugin or theme developers will master it.
     4Yeah, I was afraid that would be offered up as _"the solution."_  As you can see, [https://youtrack.jetbrains.com/issue/WI-27830 I have been aware of this capability for a while], and in that link you can see that I think the way PhpStorm implements it is over-the-top complicated and it is very unlikely that most plugin or theme developers will master it.
    55
    66And yes `WP::get()` is in core but if included in core it would define the pattern that many developers would mimic in their own plugins and themes and thus create proliferation of code that PhpStorm would flag with errors.