diff --git a/core/lib/Drupal/Component/Annotation/composer.json b/core/lib/Drupal/Component/Annotation/composer.json index 51e7d25b00..ef0242236b 100644 --- a/core/lib/Drupal/Component/Annotation/composer.json +++ b/core/lib/Drupal/Component/Annotation/composer.json @@ -6,7 +6,7 @@ "license": "GPL-2.0-or-later", "require": { "php": ">=5.5.9", - "doctrine/common": "^2.5", + "doctrine/common": "^2.5 <2.9", "doctrine/annotations": "1.2.*", "drupal/core-file-cache": "^8.2", "drupal/core-plugin": "^8.2", diff --git a/core/lib/Drupal/Component/ClassFinder/composer.json b/core/lib/Drupal/Component/ClassFinder/composer.json index c5a97b09f1..26f2df4e87 100644 --- a/core/lib/Drupal/Component/ClassFinder/composer.json +++ b/core/lib/Drupal/Component/ClassFinder/composer.json @@ -6,7 +6,7 @@ "license": "GPL-2.0-or-later", "require": { "php": ">=5.5.9", - "doctrine/common": "^2.5" + "doctrine/common": "^2.5 <2.9" }, "autoload": { "psr-4": {