Skip to content
Permalink
Browse files

Using non-capturing catches

  • Loading branch information
cedx committed Jan 6, 2021
1 parent ad3b83f commit 55de1d303197dc4abee4851b7eba9e796f5975ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Helper.php
@@ -46,7 +46,7 @@ protected function parseArguments(string $text, string $defaultArgument, array $
throw new InvalidArgumentException("The JSON string has an invalid format.");
}

catch (InvalidArgumentException $e) {
catch (InvalidArgumentException) {
$defaultValues[$defaultArgument] = $text;
return $defaultValues;
}

0 comments on commit 55de1d3

Please sign in to comment.