not fully qualified classes used
Opened this issue · 0 comments
Version(s) affected
4.0.1
Description
wrong class names in namespace
How to reproduce
Util/Base64UrlSafe.php:61 PhanUndeclaredClassMethod Call to method __construct from undeclared class \Jose\Component\Core\Util\RangeException (Did you mean class \RangeException)
Util/Base64UrlSafe.php:64 PhanUndeclaredClassMethod Call to method __construct from undeclared class \Jose\Component\Core\Util\RangeException (Did you mean class \RangeException)
Util/Base64UrlSafe.php:116 PhanUndeclaredClassMethod Call to method __construct from undeclared class \Jose\Component\Core\Util\RangeException (Did you mean class \RangeException)
Util/Base64UrlSafe.php:129 PhanUndeclaredClassMethod Call to method __construct from undeclared class \Jose\Component\Core\Util\InvalidArgumentException (Did you mean class \InvalidArgumentException)
Util/Base64UrlSafe.php:133 PhanUndeclaredClassMethod Call to method __construct from undeclared class \Jose\Component\Core\Util\InvalidArgumentException (Did you mean class \InvalidArgumentException)
Possible Solution
fully qualify ALL functions and classes, or declare them in use statements
Additional Context
using phan with plugin NotFullyQualifiedUsagePlugin can help finding them