Problem/Motivation

After updating to Drupal 11.3.0, the following error appears:

Fatal error: Uncaught Error: Class "Doctrine\Common\Annotations\AnnotationReader" not found in /[...]/web/modules/contrib/api_toolkit/src/Validation/ValidatorFactory.php:40

It seems like annotation support is finally gone.

Proposed resolution

Add a class_exists() check around anything to do with the AnnotationReader class to keep backwards compatibility.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dieterholvoet created an issue. See original summary.

dieterholvoet’s picture

Status: Active » Needs review

  • dieterholvoet committed 51a8a8db on 1.x
    Issue #3563702 by dieterholvoet: Class "Doctrine\Common\Annotations\...
dieterholvoet’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.