From 3e8af9c43c24e6905d5d26374b3a7673e299e3ff Mon Sep 17 00:00:00 2001 From: netkas Date: Wed, 18 Sep 2024 14:05:26 -0400 Subject: [PATCH] Remove max_arguments from parseArguments --- src/ncc/Utilities/Resolver.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/ncc/Utilities/Resolver.php b/src/ncc/Utilities/Resolver.php index e31143a..02c5c56 100644 --- a/src/ncc/Utilities/Resolver.php +++ b/src/ncc/Utilities/Resolver.php @@ -66,13 +66,12 @@ * Parse arguments * * @param array|string $message [$message] input arguments - * @param int $max_arguments * @return array Configs Key/Value * @noinspection RegExpRedundantEscape * @noinspection RegExpSimplifiable * @noinspection PhpMissingParamTypeInspection */ - public static function parseArguments($message=null, int $max_arguments=1000): array + public static function parseArguments($message=null): array { if (is_string($message)) { @@ -126,11 +125,6 @@ { $configs[$match['unmatched']] = true; } - - if($index >= $max_arguments) - { - break; - } } return $configs;