mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
Uses Collision ^7.0
This commit is contained in:
@ -19,6 +19,20 @@ trait HandleArguments
|
||||
return in_array($argument, $arguments, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the given argument and value to the list of arguments.
|
||||
*
|
||||
* @param array<int, string> $arguments
|
||||
*
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public function pushArgument(string $argument, array $arguments): array
|
||||
{
|
||||
$arguments[] = $argument;
|
||||
|
||||
return $arguments;
|
||||
}
|
||||
|
||||
/**
|
||||
* Pops the given argument from the arguments.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user