diff --git a/.env b/.env index c9a0da3..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 +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/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; 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 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