Skip to content

Commit 7cb0d37

Browse files
herndlmondrejmirtes
authored andcommitted
Use TypeUtils::getOldConstantArrays in RegularExpressionPatternRule
1 parent aed4b58 commit 7cb0d37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Regexp/RegularExpressionPatternRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private function extractPatterns(FuncCall $functionCall, Scope $scope): array
8383
$patternStrings[] = $constantStringType->getValue();
8484
}
8585

86-
foreach (TypeUtils::getConstantArrays($patternType) as $constantArrayType) {
86+
foreach (TypeUtils::getOldConstantArrays($patternType) as $constantArrayType) {
8787
if (
8888
in_array($functionName, [
8989
'preg_replace',

0 commit comments

Comments
 (0)