-
Improvement
-
Resolution: Fixed
-
Trivial
-
4.0.0-a2
-
None
CodeSniffer is not detecting namespaces when used in type hint for property declarations.
So the following would be marked as an "unused USE statement"
use Some\Namespace\MyClass;
|
|
|
class Example |
{
|
private MyClass $property; |
}
|
The sniff needs to be updated to also check for typed properties.

