PhpStorm 2019.3 Help

Code Inspection: Unnecessary statement use

Reports the use statements that contain non-fully qualified import names and thus have no effect.

Import names must be fully qualified. Note that for namespaced names (that is, FQNs containing the namespace separator, such as Foo\Bar), using the leading backslash is not necessary and not recommended. For global names that do not contain the namespace separator, such as FooBar, using the leading backslash is required.

Reports the use statements that contain non-fully qualified import names and thus have no effect.

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

Last modified: 27 February 2020