diff --git a/phpstan.neon b/phpstan.neon index 2ea988d..e434a72 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,6 +1,5 @@ includes: - vendor/phpstan/phpstan-strict-rules/rules.neon - - vendor/ergebnis/phpstan-rules/rules.neon - vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon parameters: diff --git a/src/Plugin.php b/src/Plugin.php index a13eb0d..50526c1 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -102,6 +102,7 @@ public function handleArguments(array $arguments): array private function extractPayload(string $method, string $argument): array { try { + // @phpstan-ignore-next-line return (array) json_decode(str_replace("--{$method}=", '', $argument), true, 512, JSON_THROW_ON_ERROR); } catch (\JsonException) {