From 7a1d911664b20fce9714e00f88c6875cb7c68736 Mon Sep 17 00:00:00 2001 From: Raphael Fakhri <153192858+RaphaelFakhri@users.noreply.github.com> Date: Tue, 3 Nov 2026 11:15:47 +0000 Subject: [PATCH] Use explicit nullable types in ArgvParser::consume() --- scripts/translation/libqa/ArgvParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/translation/libqa/ArgvParser.php b/scripts/translation/libqa/ArgvParser.php index 98bc9584c6..2f30e4b751 100644 --- a/scripts/translation/libqa/ArgvParser.php +++ b/scripts/translation/libqa/ArgvParser.php @@ -39,7 +39,7 @@ public function use( string $arg ) : void throw new Exception( "Unused '$arg' not found." ); } - public function consume( string $equals = null , string $prefix = null , int $position = -1 ) : string|null + public function consume( ?string $equals = null , ?string $prefix = null , int $position = -1 ) : string|null { $args = $this->argv; foreach ( $args as $pos => $arg )