Skip to content

MIR1511

UseStatementHasNoEffect

A use of a name without a namespace separator and without an alias, outside any namespace, imports the name under itself. PHP warns that it has no effect.

<?php
use Foo;

Remove the statement, or move it into the namespace that needs the import.