Skip to content

Commit

Permalink
Applied fabbot.io suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
symfonyaml committed Apr 12, 2024
1 parent 60a1610 commit 31f907b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Component/Console/Input/ArgvInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public function __construct(?array $argv = null, ?InputDefinition $definition =
{
$argv ??= $_SERVER['argv'] ?? [];

foreach($argv as $arg) {
if (!is_scalar($arg) && !$arg instanceof \Stringable) {
foreach ($argv as $arg) {
if (!\is_scalar($arg) && !$arg instanceof \Stringable) {
throw new RuntimeException(sprintf('Argument values expected to be all scalars, got "%s".', get_debug_type($arg)));
}
}
Expand Down

0 comments on commit 31f907b

Please sign in to comment.