diff --git a/scripts/translation/libqa/ArgvParser.php b/scripts/translation/libqa/ArgvParser.php index c1c7759c3..af664adb0 100644 --- a/scripts/translation/libqa/ArgvParser.php +++ b/scripts/translation/libqa/ArgvParser.php @@ -63,9 +63,9 @@ public function consume( string $equals = null , string $prefix = null , int $po public function complete() : void { - for ( $pos = 0 ; $pos < count( $this->argv ) ; $pos++ ) + foreach ( $this->argv as $pos => $arg ) if ( $this->used[ $pos ] == false ) - fwrite( STDERR , "Unknown argument: {$this->argv[$pos]}\n\n" ); + fwrite( STDERR , "Unknown argument: {$arg}\n\n" ); } public function residual() : array