Project
PhpStorm/WebStorm
Priority
Normal
Type
Feature
State
Fixed
Assignee
Alexey Gopachenko
Subsystem
PHP Inspections
Fix versions
EAP 111.217
Affected versions
EAP 111.150
  • Created by   Jan Dolecek
    4 months ago (30 Dec 2011 21:59)
  • Updated by   Alexey Gopachenko
    4 months ago (31 Dec 2011 13:24)
 
WI-9242 More detailed "Undefined method X" inspection
1
Issue is visible to: All Users
  The issue is visible to the selected user group only
// suppose getBar doesn't exist
$this->em->getFoo()->getBar();

In this example inspection says "Undefined method getBar" and with more details "Referenced method is not found in subject class".

If not difficult, can it say in which class? As sometimes the problem is not that method is not defined, but rather wrong phpDoc for getFoo().

Thanks
Comments (4)
 
History
 
Linked Issues (?)
 
Jan Dolecek
  Jan Dolecek
31 Dec 2011 00:08
4 months ago
It seems that most often it shows this message because of buggy/inconsistent phpDoc processing :p (as mentioned in some other ticket; but that's irrelevant)
Alexey Gopachenko
  Alexey Gopachenko
31 Dec 2011 02:10
4 months ago
Rewritten all "undefined member":

looks more descriptive to me
Jan Dolecek
  Jan Dolecek
31 Dec 2011 03:17
4 months ago
Great, this was unbelievably quick solution for a feature request. Thumbs up!
Alexey Gopachenko
  Alexey Gopachenko
31 Dec 2011 13:23
4 months ago
We are kind of get used to checking inferred type with Ctrl+Q on left side of arrow.. looks like this saves some time.
Related Changes
Resolved Date
4 months ago (31 Dec 2011 13:24)
State
To be discussedFixed
Fix versions
EAP 111.217, 3.0.2