PhpStorm 2021.2 Help

Code Inspection: Unnecessary statement use

Reports the use statements that contain non-fully qualified class names and thus have no effect. The inspection only reports classes imports; functions and constants imports are not considered.

See Using namespaces: Aliasing/Importing (php.net) for details.

Suppress an inspection in the editor

  1. Position the caret at the highlighted line and press Alt+Enter or click the Intention action icon.

  2. Click the arrow next to the inspection you want to suppress and select the necessary suppress action.

Last modified: 16 July 2021