diff --git a/composer.json b/composer.json index 1af79ae13..48080c893 100755 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ ], "require": { "php": "^8.1", - "jms/serializer": "^3.20", + "jms/serializer": "^3.30", "psr-discovery/http-client-implementations": "^1.0", "psr-discovery/http-factory-implementations": "^1.0", "psr/http-client": "^1.0", diff --git a/src/Common/Serializer/AttributeDriverFactory.php b/src/Common/Serializer/AttributeDriverFactory.php index 976001a69..89f34cd41 100644 --- a/src/Common/Serializer/AttributeDriverFactory.php +++ b/src/Common/Serializer/AttributeDriverFactory.php @@ -73,7 +73,7 @@ public function __construct( /** * {@inheritdoc} */ - public function createDriver(array $metadataDirs, Reader $annotationReader): DriverInterface + public function createDriver(array $metadataDirs, ?Reader $annotationReader = null): DriverInterface { $driver = new AttributeDriver( $this->propertyNamingStrategy, $this->typeParser