From 19b7ffd46f2d6ce8514882515b7e99f9809e8768 Mon Sep 17 00:00:00 2001 From: The-Voidwalker Date: Mon, 26 Jul 2021 15:02:19 -0400 Subject: [PATCH] Fix use of egLoopsCountLimit egLoopsCounterLimit does not exist and was a likely typo. Additionally, cast the variable to int, as null is not greater than -1 Bug: T287347 --- ExtLoops.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExtLoops.php b/ExtLoops.php index 1c641b3..f9a35dd 100644 --- a/ExtLoops.php +++ b/ExtLoops.php @@ -324,8 +324,8 @@ class ExtLoops { * @return bool */ public static function maxLoopsPerformed( Parser $parser ) { - global $egLoopsCounterLimit; - return $egLoopsCounterLimit > -1 && $parser->mExtLoopsCounter >= $egLoopsCounterLimit; + global $egLoopsCountLimit; + return (int)$egLoopsCountLimit > -1 && $parser->mExtLoopsCounter >= (int)$egLoopsCountLimit; } /** -- 2.32.0.windows.2