From b86a59357cbd80d068139bb67f23cc74f3fa1b2c Mon Sep 17 00:00:00 2001 From: Ronald Marfoldi Date: Tue, 10 Feb 2026 14:33:11 +0100 Subject: [PATCH 1/4] Upddate to nelmio/api-doc-bundle and make it required as SerializerModelDescriber requires it --- bin/ecs | 8 +++----- composer.json | 2 +- src/OpenApi/SerializerModelDescriber.php | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/bin/ecs b/bin/ecs index 7aa1d12..849d834 100755 --- a/bin/ecs +++ b/bin/ecs @@ -1,15 +1,13 @@ #!/bin/bash -# Script used to run ECS check in the application docker container +# Script used to run ECS check in the application container PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd)" -CHECK_DIR=${1:-src} cd "${PROJECT_ROOT}" || exit 1 if [ -f /.dockerenv ]; then - echo "[INFO] Running ECS check" - vendor/bin/ecs check --fix --config=ecs.php "${CHECK_DIR}" + vendor/bin/ecs check --fix --config=ecs.php exit fi -bin/docker-compose run --rm app bash -c \'bin/ecs "${CHECK_DIR}"\' +bin/docker-compose run --rm app bash -c \'bin/ecs\' diff --git a/composer.json b/composer.json index cafa5dd..9cde964 100644 --- a/composer.json +++ b/composer.json @@ -14,12 +14,12 @@ "php": ">=8.3", "ext-json": "*", "doctrine/common": "^3.3", + "nelmio/api-doc-bundle": "^5.9", "symfony/property-info": "^6.3|^7.0" }, "require-dev": { "doctrine/doctrine-bundle": "^2.18", "doctrine/orm": "^3.5", - "nelmio/api-doc-bundle": "^4.13", "slevomat/coding-standard": "8.22", "symfony/dotenv": "^6.3|^7.0", "symfony/test-pack": "^1.1", diff --git a/src/OpenApi/SerializerModelDescriber.php b/src/OpenApi/SerializerModelDescriber.php index f95d036..2bfe7d0 100644 --- a/src/OpenApi/SerializerModelDescriber.php +++ b/src/OpenApi/SerializerModelDescriber.php @@ -89,7 +89,7 @@ private function getSymfonyConstraintAnnotationReader(): SymfonyConstraintAnnota { if (null === $this->symfonyConstraintAnnotationReader) { /** @psalm-suppress NullArgument */ - $this->symfonyConstraintAnnotationReader = new SymfonyConstraintAnnotationReader(null); + $this->symfonyConstraintAnnotationReader = new SymfonyConstraintAnnotationReader(); } return $this->symfonyConstraintAnnotationReader; From ed07045a6f9800e07120a108077a59cb5f1e699b Mon Sep 17 00:00:00 2001 From: Ronald Marfoldi Date: Tue, 10 Feb 2026 14:40:43 +0100 Subject: [PATCH 2/4] Upddate to nelmio/api-doc-bundle and make it required as SerializerModelDescriber requires it --- ...{anzu_systems_serialzier.yaml => anzu_systems_serializer.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tests/config/packages/{anzu_systems_serialzier.yaml => anzu_systems_serializer.yaml} (100%) diff --git a/tests/config/packages/anzu_systems_serialzier.yaml b/tests/config/packages/anzu_systems_serializer.yaml similarity index 100% rename from tests/config/packages/anzu_systems_serialzier.yaml rename to tests/config/packages/anzu_systems_serializer.yaml From 8f34f59b4e80d90a3d213c092a3daf3fbcc46ec2 Mon Sep 17 00:00:00 2001 From: Ronald Marfoldi Date: Tue, 10 Feb 2026 14:51:03 +0100 Subject: [PATCH 3/4] Upddate to nelmio/api-doc-bundle and make it required as SerializerModelDescriber requires it --- .env | 2 +- tests/TestApp/Controller/DummyController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index c9a0da3..f84ccce 100644 --- a/.env +++ b/.env @@ -7,4 +7,4 @@ DB_BUNDLE_PASS=admin DB_BUNDLE_HOST=mysql DB_BUNDLE_PORT=3306 DB_BUNDLE_NAME=serializerbundle -DB_BUNDLE_URL=mysql://${DB_BUNDLE_USER}:${DB_BUNDLE_PASS}@${DB_BUNDLE_HOST}:${DB_BUNDLE_PORT}/${DB_BUNDLE_NAME}?serverVersion=8.0 +DB_BUNDLE_URL=mysql://${DB_BUNDLE_USER}:${DB_BUNDLE_PASS}@${DB_BUNDLE_HOST}:${DB_BUNDLE_PORT}/${DB_BUNDLE_NAME}?serverVersion==8.0.31 diff --git a/tests/TestApp/Controller/DummyController.php b/tests/TestApp/Controller/DummyController.php index b86bede..f87dcca 100644 --- a/tests/TestApp/Controller/DummyController.php +++ b/tests/TestApp/Controller/DummyController.php @@ -7,7 +7,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; #[Route('/dummy')] final class DummyController extends AbstractController From fb1544f064234429999f004e5127548ca806901f Mon Sep 17 00:00:00 2001 From: Ronald Marfoldi Date: Tue, 10 Feb 2026 15:14:57 +0100 Subject: [PATCH 4/4] Upddate to nelmio/api-doc-bundle and make it required as SerializerModelDescriber requires it --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index f84ccce..924e07e 100644 --- a/.env +++ b/.env @@ -7,4 +7,4 @@ DB_BUNDLE_PASS=admin DB_BUNDLE_HOST=mysql DB_BUNDLE_PORT=3306 DB_BUNDLE_NAME=serializerbundle -DB_BUNDLE_URL=mysql://${DB_BUNDLE_USER}:${DB_BUNDLE_PASS}@${DB_BUNDLE_HOST}:${DB_BUNDLE_PORT}/${DB_BUNDLE_NAME}?serverVersion==8.0.31 +DB_BUNDLE_URL=mysql://${DB_BUNDLE_USER}:${DB_BUNDLE_PASS}@${DB_BUNDLE_HOST}:${DB_BUNDLE_PORT}/${DB_BUNDLE_NAME}?serverVersion=8.0.31