Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7005065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:18:17+00:00 2026-05-27T21:18:17+00:00

I am using PHPStorm IDE, and it has a very useful feature, inspect the

  • 0

I am using PHPStorm IDE, and it has a very useful feature, inspect the errors, problems in php code.

I know how can i turn off the options globally.
For example, here is a simple code:

require_once ('../config/configuration.inc');
define ("LIB_PATH", BASE_PATH . '/libraries/') ; //originally in conf i put here for test
require_once (LIB_PATH.'JFMF/Core/JFMF_APP.php');

$App = new JFMF_App();

The inspector warn me, i should define the JFMF_APP class, and also notice me about: i shold define LIB_PATH, what i don’t undestand, because the definition is there, and if it is not enough, require_once warn me to use PHPDoc to resolve this problem (if i do that doesn’t helps), and some other annoying warnings.

Anyhow, focus on the problem, originally the definition of LIB_PATH in the configuration.inc.

My question is, how can i tell to PHPStorm, if there are an include statement, process it, and register the classes, so my objects come from defined classes. I hope it’s understable, my english is not so good.

The code is working code, and run without errors.

Maybe other PHPStorm beginners would know this also.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:18:18+00:00Added an answer on May 27, 2026 at 9:18 pm

    To turn off errors in the inpection for a single line hit F2 to go the error. Then hit Alt-Enter to bring up the inspections menu, then navigate from the popup menu to the error menU (this can usually be done by simply hitting the right arrow) and select “Suppress for statement”. A comment will appear in your code to suppress the error for that statement.

    Comment Example: An annotation like /** @noinspection Php[...]Inspection */

    If you haven’t included the library within your project, you can add it to your “External Libraries” and all the class and objects will be indexed and available to your project. To do this click anywhere within the Project Window and hit F4. Or go to the project window, right click on the “External Libraries” (it will be at the bottom)

    enter image description here

    and select “Configure PHP Include Paths”.

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the PhpStorm IDE, and it has a wonderful plugin called CSS-X fire
I'm using PHP Storm as my IDE, but I believe that other IDE's such
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button
Using C#, I need a class called User that has a username, password, active
Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
Using android 2.3.3, I have a background Service which has a socket connection. There's
Using jQuery, one can easily find out whether a particular element is visible using
Using Tsql, how can I find out when MS SQL server was installed?
Using C++ preprocessor directives, is it possible to test if a preprocessor symbol has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.