PhpStorm 2020.2 Help

Code Inspection: Undefined class

Produces two types of warnings:

  • Undefined class : the declaration of referenced class is not found in the built-in library and project files.

  • Multiple declarations : multiple class definitions were found in project files. This can lead to issues with code completion, members resolution, and class inheritance analysis.



Use the options below to customize the inspection:
  • Don't report multiple class declaration potential problems : if selected, the inspection will not report classes having multiple definitions in project files.

  • Ignore : if selected, the inspection will not report the undefined classes referenced in PHPDoc blocks.

Last modified: 08 May 2020