From a9b4a2e773d5216e7538e48916420f425a9b8dd4 Mon Sep 17 00:00:00 2001 From: Martin Herndl Date: Thu, 1 Sep 2022 11:33:51 +0200 Subject: [PATCH] Use TypeUtils::getOldConstantArrays in RegularExpressionPatternRule --- src/Rules/Regexp/RegularExpressionPatternRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rules/Regexp/RegularExpressionPatternRule.php b/src/Rules/Regexp/RegularExpressionPatternRule.php index 124d75a8b5..3a6155ecc5 100644 --- a/src/Rules/Regexp/RegularExpressionPatternRule.php +++ b/src/Rules/Regexp/RegularExpressionPatternRule.php @@ -83,7 +83,7 @@ private function extractPatterns(FuncCall $functionCall, Scope $scope): array $patternStrings[] = $constantStringType->getValue(); } - foreach (TypeUtils::getConstantArrays($patternType) as $constantArrayType) { + foreach (TypeUtils::getOldConstantArrays($patternType) as $constantArrayType) { if ( in_array($functionName, [ 'preg_replace',