mirror of
https://github.com/mrclay/minify.git
synced 2025-08-26 15:24:48 +02:00
explicitly mark parameters as nullable
This commit is contained in:
@@ -108,7 +108,7 @@ class Cli
|
||||
* @return Arg
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function addArgument($letter, $required, Arg $arg = null)
|
||||
public function addArgument($letter, $required, ?Arg $arg = null)
|
||||
{
|
||||
if (! preg_match('/^[a-zA-Z]$/', $letter)) {
|
||||
throw new InvalidArgumentException('$letter must be in [a-zA-Z]');
|
||||
|
Reference in New Issue
Block a user