Skip to content

Internal error: Argument 5 passed to PHPStan\Analyser\Scope::enterClassMethod() must be of the type string or null, boolean given #63

@ddebin

Description

@ddebin

phpstan/phpstan#2148

PHP Fatal error:  Uncaught TypeError: Argument 5 passed to PHPStan\Analyser\Scope::enterClassMethod() must be of the type string or null, boolean given, called in vendor/phpstan/phpstan-doctrine/src/Type/Doctrine/QueryBuilder/QueryBuilderMethodDynamicReturnTypeExtension.php on line 180 and defined in phar://vendor/phpstan/phpstan-shim/phpstan.phar/src/Analyser/Scope.php:1265
Stack trace:
#0 vendor/phpstan/phpstan-doctrine/src/Type/Doctrine/QueryBuilder/QueryBuilderMethodDynamicReturnTypeExtension.php(180): PHPStan\Analyser\Scope->enterClassMethod(Object(PhpParser\Node\Stmt\ClassMethod), Array, NULL, NULL, false, false, false)
#1 vendor/phpstan/phpstan-doctrine/src/Type/Doctrine/QueryBuilder/QueryBuilderMethodDynamicReturnTypeExtension.php(108): PHPStan\Type\Doctrine\QueryBuilder\QueryBuilderMethodDynamicReturnTypeExtension->findQueryBuilderTypesInCalledMetho in phar://vendor/phpstan/phpstan-shim/phpstan.phar/src/Analyser/Scope.php on line 1265` 

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