-
Notifications
You must be signed in to change notification settings - Fork 105
Compatibility with doctrine/orm:3 #529
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
Comments
Are there any plans to drop older PHP versions? https://github.com/doctrine/orm/blob/3.0.x/src/Query/SqlWalker.php uses union types which are not available in PHP 7.x. |
Currently ORM v3 is not supported, I took a look and it's not an easy task (#531) but I'm not sure we need to drop old php version support. |
Hello, phpstan-doctrine is not yet fully compatible and verified to work with Doctrine ORM 3.0 and DBAL 4.0, but I did some work to make forward-compatible changes that should work both with old and new versions: 9534fcd...30cf38d These changes have just been released in phpstan-doctrine 1.3.60: https://github.com/phpstan/phpstan-doctrine/releases/tag/1.3.60 Please report back how they work for you, thanks. The work on full compatibility with Doctrine ORM 3.0 and DBAL 4.0 continues in #535. |
Using v1.3.60 with orm v3 results in the following error: Internal error: Internal error: array_key_exists(): Argument #2 ($array) must be of type array, Doctrine\ORM\Mapping\FieldMapping given while analysing file (...)\src\Entity\User.php
|
@knallcharge This should be fixed by #537. |
Hello, Thanks for your work, with the new release, i got:
|
Current work in progress is here #535 if you want to try the branch on your side. |
Full compatibility with ORM 3.0 and DBAL 4.0 has been merged (#535) and will be released shortly as phpstan-doctrine 1.3.61. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
doctrine/orm:3.0
was released a few days ago: https://github.com/doctrine/orm/releases/tag/3.0.0I get the following error when using v3:
The text was updated successfully, but these errors were encountered: