Skip to content

Compatibility with doctrine/orm:3 #529

Closed
@W0rma

Description

@W0rma

doctrine/orm:3.0 was released a few days ago: https://github.com/doctrine/orm/releases/tag/3.0.0

I get the following error when using v3:

PHP Fatal error:  Declaration of PHPStan\Type\Doctrine\Query\QueryResultTypeWalker::walkSelectStatement(Doctrine\ORM\Query\AST\SelectStatement $AST) must be  
     compatible with Doctrine\ORM\Query\SqlWalker::walkSelectStatement(Doctrine\ORM\Query\AST\SelectStatement $selectStatement): string in                                                              
     /var/www/html/vendor/phpstan/phpstan-doctrine/src/Type/Doctrine/Query/QueryResultTypeWalker.php on line 175                                                                                        
     Fatal error: Declaration of PHPStan\Type\Doctrine\Query\QueryResultTypeWalker::walkSelectStatement(Doctrine\ORM\Query\AST\SelectStatement $AST) must be compatible with                            
     Doctrine\ORM\Query\SqlWalker::walkSelectStatement(Doctrine\ORM\Query\AST\SelectStatement $selectStatement): string in                                                                              
     /var/www/html/vendor/phpstan/phpstan-doctrine/src/Type/Doctrine/Query/QueryResultTypeWalker.php on line 175

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