Remove max_arguments from parseArguments

This commit is contained in:
netkas 2024-09-18 14:05:26 -04:00
parent e5ceb9bbf7
commit 3e8af9c43c

View file

@ -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;