diff --git a/composer.json b/composer.json index 1311d1d..1e0738c 100644 --- a/composer.json +++ b/composer.json @@ -4,15 +4,15 @@ "type": "symfony-bundle", "license": "MIT", "require": { - "symfony/config": "^4.4 | ^5.0", - "symfony/dependency-injection": "^4.4 | ^5.0", - "symfony/http-kernel": "^4.4 | ^5.0", - "symfony/routing": "^4.4 | ^5.0", - "doctrine/persistence": "^1.3 | ^2.0", - "ramsey/uuid-doctrine": "^1.6" + "symfony/config": "^4.4 | ^5.0 | ^6.0 | ^7.0", + "symfony/dependency-injection": "^4.4 | ^5.0 | ^6.0 | ^7.0", + "symfony/http-kernel": "^4.4 | ^5.0 | ^6.0 | ^7.0", + "symfony/routing": "^4.4 | ^5.0 | ^6.0 | ^7.0", + "doctrine/persistence": "^1.3 | ^2.0 | ^3.0", + "ramsey/uuid-doctrine": "^1.6 | ^2.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.16", + "friendsofphp/php-cs-fixer": "^2.16 | ^3.51.0", "symfony/phpunit-bridge": "^5.1" }, "autoload": { diff --git a/src/Action/BatchAction.php b/src/Action/BatchAction.php index 93aca17..d840a12 100644 --- a/src/Action/BatchAction.php +++ b/src/Action/BatchAction.php @@ -23,9 +23,7 @@ public function __construct( $this->requestHandler = $requestHandler; } - /** - * @Route("/analytics/batch", methods={"POST"}) - */ + #[Route('/analytics/batch', methods: ['POST'])] public function __invoke(Request $request): JsonResponse { $analyticsRequest = $this->analyticsRequestFactory->fromSymfonyRequest($request, true); diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 1ab55fe..78da95c 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -9,7 +9,7 @@ class Configuration implements ConfigurationInterface { - public function getConfigTreeBuilder() + public function getConfigTreeBuilder(): TreeBuilder { $treeBuilder = new TreeBuilder('m10c_unlocked_analytics');