From e6ff0e4dc7361ef5c8ab5e902ea67020adf2cfb9 Mon Sep 17 00:00:00 2001 From: Tomas Date: Mon, 5 Feb 2024 07:28:48 +0200 Subject: [PATCH] Support DBAL v4 and ORM v3 --- composer.json | 6 +++--- src/Type/JsonDocumentType.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 9ad2fd4..1a06357 100644 --- a/composer.json +++ b/composer.json @@ -14,15 +14,15 @@ ], "require": { "php": ">=8.1", - "doctrine/orm": "^2.6.3", + "doctrine/orm": "^2.6.3 || ^3.0.0", "symfony/property-access": "^5.4 || ^6.0 || ^7.0", "symfony/property-info": "^5.4 || ^6.0 || ^7.0", "symfony/serializer": "^5.4 || ^6.0 || ^7.0" }, "require-dev": { - "doctrine/annotations": "^1.0", + "doctrine/annotations": "^1.0 || ^2.0.0", "doctrine/doctrine-bundle": "^1.12.13 || ^2.2", - "doctrine/dbal": "^2.7 || ^3.3", + "doctrine/dbal": "^2.7 || ^3.3 || ^4.0.0", "symfony/finder": "^5.4 || ^6.0 || ^7.0", "symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0", "symfony/phpunit-bridge": "^6.0 || ^7.0", diff --git a/src/Type/JsonDocumentType.php b/src/Type/JsonDocumentType.php index c9c0ea7..76c4f06 100644 --- a/src/Type/JsonDocumentType.php +++ b/src/Type/JsonDocumentType.php @@ -105,7 +105,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str * * @return mixed */ - public function convertToPHPValue($value, AbstractPlatform $platform) + public function convertToPHPValue($value, AbstractPlatform $platform): mixed { if (null === $value || $value === '') { return null;