From fd952ece9406a218313d53efd71e611f15e318eb Mon Sep 17 00:00:00 2001 From: Ilyes512 Date: Sun, 28 Sep 2025 15:21:20 +0200 Subject: [PATCH 1/4] Updated minimal Rector version to 1.0.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6806ef4..de58cec 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ "friendsofphp/php-cs-fixer": "^3.17", "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^9.6", - "rector/rector": "^0.17.1" + "rector/rector": "^1.0.0" }, "autoload": { "psr-4": { From f56794691aa4c7fac418652eb4db5504a2084bd0 Mon Sep 17 00:00:00 2001 From: Ilyes512 Date: Sun, 28 Sep 2025 15:36:30 +0200 Subject: [PATCH 2/4] Updated rector and phpstan to latest major version --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index de58cec..4db50c3 100644 --- a/composer.json +++ b/composer.json @@ -36,9 +36,9 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.17", - "phpstan/phpstan": "^1.10", + "phpstan/phpstan": "^2.1.0", "phpunit/phpunit": "^9.6", - "rector/rector": "^1.0.0" + "rector/rector": "^2.1.0" }, "autoload": { "psr-4": { From f34162fa5f6f37f2dc8f549bc4ecdc847d884081 Mon Sep 17 00:00:00 2001 From: Ilyes512 Date: Sun, 28 Sep 2025 15:36:54 +0200 Subject: [PATCH 3/4] Fixed a new phpstan issue --- src/Validator.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Validator.php b/src/Validator.php index b0f2741..8689443 100644 --- a/src/Validator.php +++ b/src/Validator.php @@ -65,7 +65,7 @@ private function getOperationAddress(string $path, string $method): OperationAdd * @param object $message the HTTP message to validate * @param string $path the OpenAPI path * - * @throws ValidationFailed + * @throws ValidationException */ public function delete(object $message, string $path): bool { @@ -78,7 +78,7 @@ public function delete(object $message, string $path): bool * @param object $message the HTTP message to validate * @param string $path the OpenAPI path * - * @throws ValidationFailed + * @throws ValidationException */ public function get(object $message, string $path): bool { @@ -91,7 +91,7 @@ public function get(object $message, string $path): bool * @param object $message the HTTP message to validate * @param string $path the OpenAPI path * - * @throws ValidationFailed + * @throws ValidationException */ public function head(object $message, string $path): bool { @@ -104,7 +104,7 @@ public function head(object $message, string $path): bool * @param object $message the HTTP message to validate * @param string $path the OpenAPI path * - * @throws ValidationFailed + * @throws ValidationException */ public function options(object $message, string $path): bool { @@ -117,7 +117,7 @@ public function options(object $message, string $path): bool * @param object $message the HTTP message to validate * @param string $path the OpenAPI path * - * @throws ValidationFailed + * @throws ValidationException */ public function patch(object $message, string $path): bool { @@ -130,7 +130,7 @@ public function patch(object $message, string $path): bool * @param object $message the HTTP message to validate * @param string $path the OpenAPI path * - * @throws ValidationFailed + * @throws ValidationException */ public function post(object $message, string $path): bool { @@ -143,7 +143,7 @@ public function post(object $message, string $path): bool * @param object $message the HTTP message to validate * @param string $path the OpenAPI path * - * @throws ValidationFailed + * @throws ValidationException */ public function put(object $message, string $path): bool { @@ -156,7 +156,7 @@ public function put(object $message, string $path): bool * @param object $message the HTTP message to validate * @param string $path the OpenAPI path * - * @throws ValidationFailed + * @throws ValidationException */ public function trace(object $message, string $path): bool { From 0c49871cbcc5a832ad519add6245aaeb7257c5ae Mon Sep 17 00:00:00 2001 From: Ilyes512 Date: Sun, 28 Sep 2025 15:37:04 +0200 Subject: [PATCH 4/4] Added new line to phpstan config file --- phpstan.neon.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 0263f62..c6eab7a 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -4,4 +4,4 @@ parameters: paths: - src - checkMissingCallableSignature: true \ No newline at end of file + checkMissingCallableSignature: true