Closed IwfY closed 3 years ago
Maybe we should use phpstan-extends
here? I thought there was just a clash with the @template
annotation.
I have exactly the same issue, what can we do?
I have exactly the same issue, what can we do?
Either wait for a new annotations release or provide a PR with a fix.
Since the pr https://github.com/doctrine/annotations/pull/298 is merged you could require the updated dev version of doctrine/annotations
composer require doctrine/annotations:1.9.x-dev
Happening to me on a Symfony 3.4 project
"sonata-project/admin-bundle" : "^3.4",
"sonata-project/cache-bundle" : "^3.2",
"sonata-project/doctrine-orm-admin-bundle" : "^3.6",
"sonata-project/user-bundle" : "^4.0",
Had to lock it down to 1.5.1 by adding
"sonata-project/doctrine-extensions" : "1.5.1",
Doctrine annotations released the fix, so this issue is fixed right? closing. Please reopen again if the issue is still there
it's still happen with me
after I run composer req sonata-project/doctrine-extensions:^1.9 --update-with-dependencies
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! In AnnotationException.php line 54:
!!
!! [Semantical Error] The annotation "@extends" in class Sonata\Doctrine\Entit
!! y\BaseEntityManager was never imported. Did you maybe forget to add a "use"
!! statement for this annotation?
Can you provide a fix @eerison ?
@VincentLanglet could you close this issue again, because I can't test with the last version of sonata-project/doctrine-extensions
if you see in the comment I used the version 1.9
but the project has the release 1.12
But I'm with problem with other dependencies to update doctrine/doctrine-bundle
then i'll fix this in my side first and after that, I'll test with the last version, if I keep getting the same issue I reopen the issue 😃
just to help other people with this problem
after I update the doctrine/annotations
using composer update doctrine/annotations --with-dependencies
it works well 😃
Environment
Symfony 4.4 application on Apache on Linux and Windows.
Sonata packages
Symfony packages
Doctrine packages
PHP version
Subject
Since updating this library from 1.5.1 to 1.6.0 I get the following error when clearing the Symfony cache: