mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found #6103
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @h4r86e32 on GitHub (Nov 13, 2018).
Been battling with this problem for a while. Tried most things such as replacing vendor, running on PHP 7.2 and not sure what the problem is.
Error:
Initialization code:
@Ocramius commented on GitHub (Nov 13, 2018):
What are the locked versions of your dependencies?
@h4r86e32 commented on GitHub (Nov 15, 2018):
Here is a gist of my whole composer.lock file.
https://gist.github.com/h4r86e32/f685c8da265b0a35af93a9a63a2e5e4f
@caugner commented on GitHub (Feb 20, 2022):
I just faced this error today after bumping some
doctrine/*dependencies, includingdoctrine/persistencefrom 2.2.3 to 2.3.0, which marksdoctrine/annotationsas an optional dependency.In my case the solution was to
composer require doctrine/annotationsmyself.