Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not fully qualified classes used #589

Open
mokraemer opened this issue Nov 5, 2024 · 0 comments
Open

not fully qualified classes used #589

mokraemer opened this issue Nov 5, 2024 · 0 comments

Comments

@mokraemer
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant