Remove max_arguments from parseArguments
This commit is contained in:
parent
e5ceb9bbf7
commit
3e8af9c43c
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue