From fde37118aab922d05ce0e46412258ee4649c416a Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sat, 8 Mar 2025 18:15:58 +0100 Subject: [PATCH] [CLEANUP] Avoid Hungarian notation for `expression` Part of #756 --- src/Parsing/ParserState.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Parsing/ParserState.php b/src/Parsing/ParserState.php index e1fe93a8..8865235e 100644 --- a/src/Parsing/ParserState.php +++ b/src/Parsing/ParserState.php @@ -285,20 +285,20 @@ public function consume($value = 1): string } /** - * @param string $mExpression + * @param string $expression * @param int|null $iMaxLength * * @throws UnexpectedEOFException * @throws UnexpectedTokenException */ - public function consumeExpression($mExpression, $iMaxLength = null): string + public function consumeExpression($expression, $iMaxLength = null): string { $matches = null; $input = $iMaxLength !== null ? $this->peek($iMaxLength) : $this->inputLeft(); - if (\preg_match($mExpression, $input, $matches, PREG_OFFSET_CAPTURE) === 1) { + if (\preg_match($expression, $input, $matches, PREG_OFFSET_CAPTURE) === 1) { return $this->consume($matches[0][0]); } - throw new UnexpectedTokenException($mExpression, $this->peek(5), 'expression', $this->lineNumber); + throw new UnexpectedTokenException($expression, $this->peek(5), 'expression', $this->lineNumber); } /**