diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 338c6cb..6cf66e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,16 +20,34 @@ jobs: strategy: fail-fast: false matrix: - php: [8.1, 8.2, 8.3] - symfony: [6.4.*, 7.0.*] - phpunit: [^9.0, ^10.0, ^11.0] + php: [8.1, 8.2, 8.3, 8.4] + symfony: [6.4.*, 7.3.*, 8.0.*] + phpunit: [^10.0, ^11.0] php-matcher: [^6.0] orm: [^2.5, ^3.0] exclude: - php: 8.1 - symfony: 7.0.* + symfony: 7.3.* - php: 8.1 phpunit: ^11.0 + - php: 8.1 + symfony: 8.0.* + - php: 8.2 + symfony: 8.0.* + - php: 8.3 + symfony: 8.0.* + - php: 8.1 + symfony: 8.0.* + orm: ^2.5 + - php: 8.2 + symfony: 8.0.* + orm: ^2.5 + - php: 8.3 + symfony: 8.0.* + orm: ^2.5 + - php: 8.4 + symfony: 8.0.* + orm: ^2.5 steps: - uses: "actions/checkout@v4" diff --git a/composer.json b/composer.json index eee4e8d..7a7d565 100644 --- a/composer.json +++ b/composer.json @@ -24,26 +24,26 @@ } ], "require": { - "php": "^8.0", + "php": "^8.1", "ext-json": "*", "coduo/php-matcher": "^6.0", "openlss/lib-array2xml": "^1.0", - "doctrine/data-fixtures": "^1.2", - "doctrine/doctrine-bundle": "^2.0", + "doctrine/data-fixtures": "^2.1", + "doctrine/doctrine-bundle": "^2.0 || ^3.0", "doctrine/orm": "^2.5 || ^3.0", "nelmio/alice": "^3.6", "phpspec/php-diff": "^1.1", - "phpunit/phpunit": "^9.0 || ^10.0 || ^11.0", - "symfony/browser-kit": "^6.4 || ^7.0", - "symfony/finder": "^6.4 || ^7.0", - "symfony/framework-bundle": "^6.4 || ^7.0", + "phpunit/phpunit": "^10.0 || ^11.0", + "symfony/browser-kit": "^6.4 || ^7.3 || ^8.0", + "symfony/finder": "^6.4 || ^7.3 || ^8.0", + "symfony/framework-bundle": "^6.4 || ^7.3 || ^8.0", "theofidry/alice-data-fixtures": "^1.0" }, "require-dev": { "phpstan/phpstan-strict-rules": "^1.0", "phpstan/phpstan-webmozart-assert": "^1.0", - "symfony/serializer": "^5.4 || ^6.0", + "symfony/serializer": "^6.4 || ^7.3 || ^8.0", "phpstan/phpstan": "^1.8" }, "scripts": { diff --git a/test/app/AppKernel.php b/test/app/AppKernel.php index 9b96b51..d3cb948 100644 --- a/test/app/AppKernel.php +++ b/test/app/AppKernel.php @@ -44,7 +44,7 @@ public function getProjectDir(): string /** * {@inheritdoc} */ - public function registerContainerConfiguration(LoaderInterface $loader) + public function registerContainerConfiguration(LoaderInterface $loader): void { $loader->load(static function (ContainerBuilder $container): void { $container->loadFromExtension('framework', [ diff --git a/test/src/Controller/SampleController.php b/test/src/Controller/SampleController.php index b9262c1..fab3e8c 100644 --- a/test/src/Controller/SampleController.php +++ b/test/src/Controller/SampleController.php @@ -76,10 +76,10 @@ public function categoryIndexAction(Request $request): Response return $this->respond($request, $categories); } - public function showAction(Request $request): Response + public function showAction(Request $request, int $id): Response { $productRepository = $this->objectManager->getRepository(Product::class); - $product = $productRepository->find($request->get('id')); + $product = $productRepository->find($id); if (!$product) { throw new NotFoundHttpException();