From 4bc6c1b2011864fa7efc595082e242b70ad2c6e9 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sat, 8 Mar 2025 19:39:07 +0100 Subject: [PATCH] [CLEANUP] Avoid Hungarian notation for `maximumLength` 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 6e6d33f6..52ce025c 100644 --- a/src/Parsing/ParserState.php +++ b/src/Parsing/ParserState.php @@ -286,15 +286,15 @@ public function consume($value = 1): string /** * @param string $expression - * @param int|null $iMaxLength + * @param int|null $maximumLength * * @throws UnexpectedEOFException * @throws UnexpectedTokenException */ - public function consumeExpression($expression, $iMaxLength = null): string + public function consumeExpression($expression, $maximumLength = null): string { $matches = null; - $input = $iMaxLength !== null ? $this->peek($iMaxLength) : $this->inputLeft(); + $input = $maximumLength !== null ? $this->peek($maximumLength) : $this->inputLeft(); if (\preg_match($expression, $input, $matches, PREG_OFFSET_CAPTURE) === 1) { return $this->consume($matches[0][0]); }