diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index ab99c0fa..4249aec8 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -8,4 +8,5 @@ on: jobs: sa: uses: ray-di/.github/.github/workflows/static-analysis.yml@v2 - has_crc_config: true + with: + has_crc_config: true diff --git a/php-require-checker.config.json b/composer-require-checker.json similarity index 82% rename from php-require-checker.config.json rename to composer-require-checker.json index 6a31f521..3eb309b9 100644 --- a/php-require-checker.config.json +++ b/composer-require-checker.json @@ -4,7 +4,7 @@ "static", "self", "parent", "array", "string", "int", "float", "bool", "iterable", "callable", "void", "object", "Attribute", "ReflectionAttribute", "Stringable", - "BEAR\\Resource\\HalLink", "BEAR\\Resource\\NullReverseLink", "BEAR\\Resource\\ReverseLinkInterface", + "BEAR\\Resource\\HalLink", "BEAR\\Resource\\NullReverseLink", "BEAR\\Resource\\ReverseLinkInterface", "BEAR\\Resource\\Module\\AnnotationModule", "Doctrine\\Common\\Annotations\\Reader", "Doctrine\\Common\\Annotations\\AnnotationReader" ] } diff --git a/composer.json b/composer.json index 1b6411a9..64eb0b18 100644 --- a/composer.json +++ b/composer.json @@ -23,8 +23,8 @@ "ray/di": "^2.13", "ray/web-param-module": "^2.1.1", "rize/uri-template": "^0.3", - "symfony/http-client": "^5.2", - "symfony/http-client-contracts": "^2.3", + "symfony/http-client": "^5.2 || ^6.0 || ^7.0", + "symfony/http-client-contracts": "^2.3 || ^3.0", "nikic/php-parser": "^4.10", "symfony/polyfill-php81": "^1.23" }, diff --git a/src/HttpResourceObject.php b/src/HttpResourceObject.php index ca0832b9..7631262f 100644 --- a/src/HttpResourceObject.php +++ b/src/HttpResourceObject.php @@ -102,6 +102,7 @@ public function __toString(): string return $this->response->getContent(); } + /** @SuppressWarnings(PHPMD.CamelCaseMethodName) */ public function _invokeRequest(InvokerInterface $invoker, AbstractRequest $request): ResourceObject { unset($invoker); diff --git a/src/InvokeRequestInterface.php b/src/InvokeRequestInterface.php index c26f2f34..6ef8dce9 100644 --- a/src/InvokeRequestInterface.php +++ b/src/InvokeRequestInterface.php @@ -10,6 +10,8 @@ interface InvokeRequestInterface * Invokes a request using the given invoker and request objects. * * @return ResourceObject The resulting resource object returned from the request invocation. + * + * @SuppressWarnings(PHPMD.CamelCaseMethodName) */ public function _invokeRequest(InvokerInterface $invoker, AbstractRequest $request): ResourceObject; } diff --git a/src/ResourceObject.php b/src/ResourceObject.php index 340f4f49..1c028fc6 100644 --- a/src/ResourceObject.php +++ b/src/ResourceObject.php @@ -264,6 +264,8 @@ public function __clone() /** * {@inheritDoc} + * + * @SuppressWarnings(PHPMD.CamelCaseMethodName) */ public function _invokeRequest(InvokerInterface $invoker, AbstractRequest $request): ResourceObject {