1
0
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:
Thomas A. Hirsch
2025-01-28 15:50:41 +01:00
parent 230770a277
commit 60f49fa1e3
6 changed files with 6 additions and 6 deletions

View File

@@ -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]');