PHP Project Context - Flag Undefined Items

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
User avatar
Will Fastie
Posts: 160
Joined: Mon Jan 31, 2005 6:47 pm
Location: Timonium, MD USA
Contact:

PHP Project Context - Flag Undefined Items

Post by Will Fastie »

When operating in a project context (e.g., having opened a folder rather than a single file), post warnings about PHP items (functions, methods, classes, variables, constants) that are undefined. The purpose is to catch typographical errors in the spelling of names.

While editing, one can usually tell that a function is known because the code is being hinted while one is typing. Similarly, one can tell that a function might be unknown or misspelled if such hinting is not provided. However, it is easy to miss these hints. In a recent example, I typed the function name "styel" instead of "style" and just kept typing without paying attention. The result passed syntax checking. The section of code was not immediately executed and tested so I did not trip an error.

When the file with this error was loaded into JetBrains PhpStorm it was instantly flagged at a warning level (as undefined). When loaded into Rapid PHP, the error was not detected at all.

I realize that this is probably a big feature to implement. My reason for the request is that I want the IDE to help me get my code as clean as possible before it is published. In the case of my "styel" typo, the code was in production with the error. My fault for not testing properly, but something the IDE could have helped prevent.
Will
WebDesignBuild.biz, Fastie.com
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: PHP Project Context - Flag Undefined Items

Post by Aivars »

I understand the pain and you're right, this is a big feature to add and tricky, too. I've added it to the suggestions list.
Blumentals Software Programmer
Post Reply