diff --git a/composer.json b/composer.json index 628a209..183b2e5 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,7 @@ } ], "require": { - "php": "^8.0", + "php": "^8.1", "nucleos/lastfm": "^3.2", "psr/http-client": "^1.0", "psr/http-message": "^1.0", @@ -54,7 +54,7 @@ "nyholm/psr7": "^1.0", "symfony/browser-kit": "^5.4 || ^6.0", "symfony/console": "^5.4 || ^6.0", - "symfony/framework-bundle": "^5.4 || ^6.0", + "symfony/framework-bundle": "^5.4.19 || ^6.2.5", "symfony/http-client": "^5.4 || ^6.0", "symfony/http-foundation": "^5.4 || ^6.0", "symfony/http-kernel": "^5.4 || ^6.0", diff --git a/src/DependencyInjection/NucleosLastFmExtension.php b/src/DependencyInjection/NucleosLastFmExtension.php index 7614bdc..e149823 100644 --- a/src/DependencyInjection/NucleosLastFmExtension.php +++ b/src/DependencyInjection/NucleosLastFmExtension.php @@ -30,6 +30,7 @@ public function load(array $configs, ContainerBuilder $container): void { $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs); + /** @var array $bundles */ $bundles = $container->getParameter('kernel.bundles'); diff --git a/src/Resources/config/action.php b/src/Resources/config/action.php index c1ce9b6..b4fe445 100644 --- a/src/Resources/config/action.php +++ b/src/Resources/config/action.php @@ -53,5 +53,5 @@ new Reference(AuthServiceInterface::class), ]) - ; + ; }; diff --git a/src/Resources/config/services.php b/src/Resources/config/services.php index 1e53bf4..ba95a19 100644 --- a/src/Resources/config/services.php +++ b/src/Resources/config/services.php @@ -134,5 +134,5 @@ new Reference(ApiClientInterface::class), ]) - ; + ; }; diff --git a/tests/App/AppKernel.php b/tests/App/AppKernel.php index dc91c22..81cc9a5 100644 --- a/tests/App/AppKernel.php +++ b/tests/App/AppKernel.php @@ -32,7 +32,9 @@ public function __construct() public function registerBundles(): iterable { yield new FrameworkBundle(); + yield new TwigBundle(); + yield new NucleosLastFmBundle(); } @@ -59,7 +61,7 @@ protected function configureRoutes($routes): void $routes ->add('test', '/test') ->controller(TestController::class) - ; + ; return; } diff --git a/tests/Session/SessionManagerTest.php b/tests/Session/SessionManagerTest.php index 4f1e500..65e1d58 100644 --- a/tests/Session/SessionManagerTest.php +++ b/tests/Session/SessionManagerTest.php @@ -22,7 +22,7 @@ final class SessionManagerTest extends TestCase { /** - * @var Session&MockObject + * @var MockObject&Session */ private Session $session; diff --git a/vendor-bin/tools/composer.json b/vendor-bin/tools/composer.json index 408df32..5ddc606 100644 --- a/vendor-bin/tools/composer.json +++ b/vendor-bin/tools/composer.json @@ -22,9 +22,6 @@ "allow-plugins": { "phpstan/extension-installer": true }, - "bin-dir": "../../vendor/bin", - "platform": { - "php": "8.0.2" - } + "bin-dir": "../../vendor/bin" } }