From 2be86c9ccf8dddfbd768e9361ac433ea41a5c1a7 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sat, 8 Mar 2025 12:31:39 +0100 Subject: [PATCH] [CLEANUP] Avoid Hungarian notation for `matches` Part of #756 --- src/Parsing/ParserState.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Parsing/ParserState.php b/src/Parsing/ParserState.php index 484006ceb..e3c68cf6c 100644 --- a/src/Parsing/ParserState.php +++ b/src/Parsing/ParserState.php @@ -293,10 +293,10 @@ public function consume($value = 1): string */ public function consumeExpression($mExpression, $iMaxLength = null): string { - $aMatches = null; + $matches = null; $sInput = $iMaxLength !== null ? $this->peek($iMaxLength) : $this->inputLeft(); - if (\preg_match($mExpression, $sInput, $aMatches, PREG_OFFSET_CAPTURE) === 1) { - return $this->consume($aMatches[0][0]); + if (\preg_match($mExpression, $sInput, $matches, PREG_OFFSET_CAPTURE) === 1) { + return $this->consume($matches[0][0]); } throw new UnexpectedTokenException($mExpression, $this->peek(5), 'expression', $this->lineNumber); }