diff --git a/app/src/Application/Bootloader/AttributesBootloader.php b/app/src/Application/Bootloader/AttributesBootloader.php index 5d438b4f..7c5b82bb 100644 --- a/app/src/Application/Bootloader/AttributesBootloader.php +++ b/app/src/Application/Bootloader/AttributesBootloader.php @@ -19,7 +19,9 @@ final class AttributesBootloader extends Bootloader public function init(BinderInterface $binder): void { - AnnotationReader::addGlobalIgnoredName('mixin'); + if (\class_exists(AnnotationReader::class)) { + AnnotationReader::addGlobalIgnoredName('mixin'); + } $binder->bindSingleton( ReaderInterface::class, diff --git a/composer.json b/composer.json index 0f3f5ec2..55ef5f26 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ "spiral-packages/league-event": "^1.0", "spiral/cycle-bridge": "^2.5", "spiral/data-grid": "^3.0", - "spiral/framework": "^3.10", + "spiral/framework": "^3.12", "spiral/nyholm-bridge": "^1.3", "spiral/roadrunner-bridge": "^3.0", "spiral/validator": "^1.1",