Skip to content

Internal error: Fatal error: Uncaught Error: Class 'XXXXX' not found in phar:///usr/local/bin/phpstan/src/Reflection/Php/PhpParameterReflection.php:71 #3445

@ArtemGoutsoul

Description

@ArtemGoutsoul

phpstan told me:

Internal error: Class 'Nexus_PasswordLengthValidatorForUserType' not found
Run PHPStan with --debug option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new

So here goes:

Fatal error: Uncaught Error: Class 'Nexus_PasswordLengthValidatorForUserType' not found in phar:///usr/local/bin/phpstan/src/Reflection/Php/PhpParameterReflection.php:71
Stack trace:
#0 phar:///usr/local/bin/phpstan/src/Reflection/Php/PhpParameterReflection.php(71): ReflectionParameter->getDefaultValue()
#1 phar:///usr/local/bin/phpstan/src/Reflection/GenericParametersAcceptorResolver.php(23): PHPStan\Reflection\Php\PhpParameterReflection->getDefaultValue()
#2 phar:///usr/local/bin/phpstan/src/Reflection/ParametersAcceptorSelector.php(56): PHPStan\Reflection\GenericParametersAcceptorResolver::resolve(Array, Object(PHPStan\Reflection\FunctionVariantWithPhpDocs))
#3 phar:///usr/local/bin/phpstan/src/Reflection/ParametersAcceptorSelector.php(45): PHPStan\Reflection\ParametersAcceptorSelector::selectFromTypes(Array, Array, false)
#4 phar:///usr/local/bin/phpstan/src/Analyser/MutatingScope.php(1303): PHPStan\Reflection\ParametersAcceptorSelector::selectFromArgs(Object(PHPStan\Analyser\MutatingScope), Array, Array)
#5 phar:///u in phar:///usr/local/bin/phpstan/src/Reflection/Php/PhpParameterReflection.php on line 71

And yeah, just have to say it - awesome release with the static reflection, I was able to remove a lot of useless config!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions