PhpStorm 8.0.0 Web Help

File | Settings | Editor | Inspections

Use this page to customize inspection profiles, configure inspection severities, disable and enable inspections, and configure inspections for different scopes. The page is divided into the following areas:

Profile management

Item Description
Profile From this drop-down list, select the name of the profile to configure. All modified inspections are highlighted.
Share profile Select this check box to make the selected profile available for your team, i.e to make it the project-level profile. The settings of the profile are passed to XML file that is located in the <project>/.idea/inspectionProfiles directory. The profile then can be shared between your team members or you can commit the profile to VCS. If you create IDE-level profile for your own purposes, make sure that this check box is cleared.
Add Click this button to create a new profile. The profile is created based on the Default profile, on the IDE level.
Copy Click this button to create a new profile with the specified name, based on the current profile.
Delete Click this button to delete the current profile. The pre-defined profiles cannot be deleted.
Import Click this button to import a profile from an xml file.
Export Click this button to export the selected profile as an xml file.


Item Tooltip and Shortcut Description
search_field Use this text box to search through the list of inspections. In the search field, start typing the desired inspection name, or any characters contained in the inspection name or description. PhpStorm shows the list of matching occurrences.

As you type a search string, the matching inspections are highlighted. To finalize the search, press EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter. The used search strings are memorized in the history list.

  • find1.gif: Click this button to reveal the history list.
  • clear.png: Click this button to clear the search history.
commonfilter Filter Inspections Click this button to show the list of available filters:


Click the desired filters to reduce the list. The command Reset Filters becomes available, if some of the filters are checked.

expandAll.png/collapseAll.png Expand All/Collapse All
Ctrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCtrl+NumPad+ or Ctrl+EqualsCommand NumPad or Command EqualsCommand NumPad or Command EqualsCommand NumPad or Command Equals
Ctrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCtrl+NumPad - or Ctrl+MinusCommand NumPad - or Command MinusCommand NumPad - or Command MinusCommand NumPad - or Command Minus
Click these buttons to have all inspection nodes expanded/collapsed.
resetProfile.png Reset to Empty Click this button to have all the check boxes of the profile cleared and thus disable all the profile inspections.
cogwheel_framed Advanced Settings Click this button the show the menu with the following check commands:
  • Disable new inspections by default: select this check box, if you don't want the new inspections that appear after PhpStorm update, to become available.
  • Reset to Default settings: select this check box to discard all changes.

Inspection severity and scopes

Item Description
Description This read-only field shows the description of the selected inspection.
Inspection severity From this drop-down list, select the desired severity to assign to the current inspection. The possible options are:
  • Typo typo
  • Server problem server_problem
  • Info info
  • Weak warning info
  • Warning warning
  • Error error
Scopes Click this drop-down list to reveal the list of available scopes:


Clicking a scope in the list results in showing the scopes toolbar:

add.png Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertCtrl+N or Alt+InsertAlt+InsertAlt+InsertCommand N or Control EnterCommand N or Control EnterCommand N or Control Enter Click this button to specify the scope for the selected inspection.
delete.png Alt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteCommand DeleteCommand DeleteCommand Delete Click this button to delete the selected scope for the current inspection.

Choosing the option Edit Scopes Order results in showing the Scopes Order dialog box, where one can change the order of scopes using the up and down arrows (arrowUp.png arrowDown.png) or keyboard shortcuts (Alt+UpAlt+UpAlt+UpAlt+UpAlt+Up or Ctrl+Alt+AAlt+UpCtrl+Alt+UpCtrl+Shift+UpControl UpControl UpControl Alt Up/Alt+DownAlt+DownAlt+DownAlt+DownAlt+Down or Ctrl+Alt+EAlt+DownCtrl+Alt+DownCtrl+Shift+DownControl DownControl DownControl Alt Down).


This area is only available for certain inspections, when the check boxes next to the desired inspections are selected.

Item Description
Options Use the controls in this area to configure additional options, if they are available.


In the PHP context, the Undefined field and Undefined method inspections may erroneously report severe problems when actually no problems take place. This happens when you attempt to access a property or to assign a value to a property that is not explicitly defined while the referenced class contains the _get() or _set() magic methods. No error should be reported because these methods are invoked every time an undefined property is referenced, however, PhpStorm still treats them as errors or warnings, depending on the severity you have specified for the inspection in general.

To suppress reporting errors in such cases, re-configure the inspection severity. To do that, open the Inspections page of the Settings dialog box, click the inspection name in the list and select the Downgrade severity if __magic methods are present in class check box in the Options area. After that undefined properties in such cases will be indicated one step lower than specified fir inspections in general, by default, Info instead of Warning.

See Also




Web Resources: