diff --git a/composer.json b/composer.json index d6a42af8..795b9089 100644 --- a/composer.json +++ b/composer.json @@ -31,16 +31,16 @@ "nyholm/psr7": "^1.5", "phpdocumentor/reflection-docblock": "^5.3", "sspat/reserved-words": "^3.0", - "symfony/cache": "^5.3", - "symfony/config": "^5.3", - "symfony/console": "^5.3.7", - "symfony/dependency-injection": "^5.3.2", - "symfony/event-dispatcher": "^5.3", - "symfony/http-kernel": "^5.3.12", - "symfony/process": "^5.3.7", + "symfony/cache": "^5.3|^5.4", + "symfony/config": "^5.3|^5.4", + "symfony/console": "^5.3.7|^5.4.7", + "symfony/dependency-injection": "^5.3.2|^5.4.2", + "symfony/event-dispatcher": "^5.3|^5.4", + "symfony/http-kernel": "^5.3.12|^5.4.12", + "symfony/process": "^5.3.7|^5.4.7", "symfony/psr-http-message-bridge": "^2.1", - "symfony/routing": "^5.3.7", - "symfony/yaml": "^5.3", + "symfony/routing": "^5.3.7|^5.4.7", + "symfony/yaml": "^5.3|^5.4", "thecodingmachine/safe": "^1.3|^2" }, "require-dev": { @@ -53,9 +53,9 @@ "phpunit/phpunit": "^9.5.13", "roave/infection-static-analysis-plugin": "^1.16", "squizlabs/php_codesniffer": "^3.6.1", - "symfony/browser-kit": "^5.3", - "symfony/dom-crawler": "^5.3.7", - "symfony/framework-bundle": "^5.3", + "symfony/browser-kit": "^5.3|^5.4", + "symfony/dom-crawler": "^5.3.7|^5.4.7", + "symfony/framework-bundle": "^5.3|^5.4", "thecodingmachine/phpstan-safe-rule": "^1.2", "vimeo/psalm": "^4.20" }, diff --git a/src/CodeGenerator/PhpParserGenerators/ServiceSubscriberCodeGenerator.php b/src/CodeGenerator/PhpParserGenerators/ServiceSubscriberCodeGenerator.php index 3dc6fd8d..ba39ae45 100644 --- a/src/CodeGenerator/PhpParserGenerators/ServiceSubscriberCodeGenerator.php +++ b/src/CodeGenerator/PhpParserGenerators/ServiceSubscriberCodeGenerator.php @@ -89,6 +89,7 @@ public function generate(GraphDefinition $graphDefinition): GeneratedFileDefinit ->method('getSubscribedServices') ->makePublic() ->makeStatic() + ->setReturnType('array') ->setDocComment('/** * @inheritDoc */') diff --git a/src/Interfaces/ResponseDto.php b/src/Interfaces/ResponseDto.php index ce71b735..8da8f5c4 100644 --- a/src/Interfaces/ResponseDto.php +++ b/src/Interfaces/ResponseDto.php @@ -7,8 +7,5 @@ // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore interface ResponseDto extends Dto { - /** - * @internal - */ public static function _getResponseCode(): string; } diff --git a/test/unit/CodeGenerator/PhpParserGenerators/ServiceSubscriberCodeGeneratorTest.php b/test/unit/CodeGenerator/PhpParserGenerators/ServiceSubscriberCodeGeneratorTest.php index a7a61044..6f56bb0f 100644 --- a/test/unit/CodeGenerator/PhpParserGenerators/ServiceSubscriberCodeGeneratorTest.php +++ b/test/unit/CodeGenerator/PhpParserGenerators/ServiceSubscriberCodeGeneratorTest.php @@ -122,7 +122,7 @@ public function __construct(ContainerInterface $locator) /** * @inheritDoc */ - public static function getSubscribedServices() + public static function getSubscribedServices() : array { return array('test' => '?' . ClassName::class); }