Skip to content

Internal error in Type/Doctrine/QueryBuilder/Expr/NewExprDynamicReturnTypeExtension #73

Closed
@yura3d

Description

@yura3d
 ------ --------------------------------------------------------------
  Line   Doctrine/Expr/PartialSelect.php
 ------ --------------------------------------------------------------
         Internal error: Class 'parent' not found
         Run PHPStan with --debug option and post the stack trace to:
         https://github.com/phpstan/phpstan/issues/new
 ------ --------------------------------------------------------------
PHP Fatal error:  Uncaught Error: Class 'parent' not found in /.../vendor/phpstan/phpstan-doctrine/src/Type/Doctrine/QueryBuilder/Expr/NewExprDynamicReturnTypeExtension.php:52
Stack trace:
#0 /.../vendor/phpstan/phpstan/src/Analyser/Scope.php(1498): PHPStan\Type\Doctrine\QueryBuilder\Expr\NewExprDynamicReturnTypeExtension->getTypeFromStaticMethodCall(Object(PHPStan\Reflection\Php\PhpMethodReflection), Object(PhpParser\Node\Expr\StaticCall), Object(PHPStan\Analyser\Scope))
#1 /.../vendor/phpstan/phpstan/src/Analyser/Scope.php(372): PHPStan\Analyser\Scope->resolveType(Object(PhpParser\Node\Expr\StaticCall))
#2 /.../vendor/phpstan/phpstan/src/Rules/FunctionCallParametersCheck.php(98): PHPStan\Analyser\Scope->getType(Object(PhpParser\Node\Expr\StaticCall))
#3 /.../vendor/phpstan/phpstan/src/Rules/Methods/CallStaticMethodsRule.php(265): PHPStan\Rules\FunctionCallParamet in /.../vendor/phpstan/phpstan-doctrine/src/Type/Doctrine/QueryBuilder/Expr/NewExprDynamicReturnTypeExtension.php on line 52

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