diff --git a/phpstan.neon b/phpstan.neon index 63aadba..46b0f47 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,5 @@ parameters: - level: 6 + level: 5 paths: - src - tests diff --git a/src/Exceptions/CantonException.php b/src/Exceptions/CantonException.php index 7b49ef4..e390ac4 100644 --- a/src/Exceptions/CantonException.php +++ b/src/Exceptions/CantonException.php @@ -8,16 +8,19 @@ class CantonException extends Exception { public static function notFoundForAbbreviation(string $abbreviation): self { + /** @phpstan-ignore-next-line */ return new static("Couldn't find Canton for given abbreviation: {$abbreviation}"); } public static function notFoundForName(string $name): self { + /** @phpstan-ignore-next-line */ return new static("Couldn't find Canton for given name: {$name}"); } public static function notFoundForZipcode(int $zipcode): self { + /** @phpstan-ignore-next-line */ return new static("Couldn't find Canton for given zipcode: {$zipcode}"); } }