Code Inspection: Undefined function
Configure inspections: Settings | Editor | Inspections
Show intention actions: AltEnter
Reports the references to functions that are not defined in the project files, configured include paths, or among the PHP predefined functions.
In the following example, the undefined_function()
is not defined in the built-in library and project files.
$var = undefined_function('Value');
Place the caret at the highlighted line and press AltEnter or click
.
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.