[doc-base] master: Use explicit nullable types in ArgvParser::consume() (#362)

From: Date: Tue, 03 Nov 2026 17:46:53 +0000
Subject: [doc-base] master: Use explicit nullable types in ArgvParser::consume() (#362)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23909@lists.php.net to get a copy of this message
Author: Raphael Fakhri (RaphaelFakhri) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2026-11-03T17:46:50Z Commit: https://github.com/php/doc-base/commit/66cb673ca0ebbe178b6405ec7c8c11a2f6f44b23 Raw diff: https://github.com/php/doc-base/commit/66cb673ca0ebbe178b6405ec7c8c11a2f6f44b23.diff Use explicit nullable types in ArgvParser::consume() (#362) Changed paths: M scripts/translation/libqa/ArgvParser.php Diff: 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 )

« previous php.doc.cvs (#23909) next »