Skip to content

Commit 7035ef6

Browse files
authored
PHP 8.2 | Fix deprecated embedded variables in text strings (#55)
1 parent 0ecbf3b commit 7035ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ImportDetection/Sniffs/Imports/RequireImportsSniff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private function isSymbolIgnored(Symbol $symbol): bool {
125125

126126
$wordPressPatterns = $this->getIgnoredWordPressSymbolPatterns();
127127
$matchingWordPressPatterns = array_values(array_filter($wordPressPatterns, function (string $pattern) use ($symbol): bool {
128-
return $this->doesSymbolMatchPattern($symbol, "/${pattern}/");
128+
return $this->doesSymbolMatchPattern($symbol, "/{$pattern}/");
129129
}));
130130
return count($matchingWordPressPatterns) > 0;
131131
}

0 commit comments

Comments
 (0)