Skip to content

Commit

Permalink
Switched argument type to string
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk committed May 28, 2024
1 parent f2db48f commit 3287cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parse.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static function arguments(string $args): array
}

$args = Strings::split($args, '/[,]\s*/');
$args = Arrays::walk($args, function(mixed $arg) {
$args = Arrays::walk($args, function(string $arg) {
$pair = Strings::split($arg, '/\s*(?::|=>?)\s*/');
$pair = array_pad($pair, -2, 0);

Expand Down

0 comments on commit 3287cd1

Please sign in to comment.