diff --git a/composer.json b/composer.json index 6806ef4..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": "^0.17.1" + "rector/rector": "^2.1.0" }, "autoload": { "psr-4": { 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 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 {