Skip to content

Commit b63a9ac

Browse files
authored
Fix detection of non-lowercase extension functions (#144)
1 parent af14c65 commit b63a9ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Analyser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ public function run(): AnalysisResult
140140

141141
foreach ($usedSymbolsByKind as $kind => $usedSymbols) {
142142
foreach ($usedSymbols as $usedSymbol => $lineNumbers) {
143-
if (isset($this->ignoredSymbols[$usedSymbol])) {
143+
$usedSymbolNameForIgnoreCheck = $kind === SymbolKind::FUNCTION ? strtolower($usedSymbol) : $usedSymbol;
144+
145+
if (isset($this->ignoredSymbols[$usedSymbolNameForIgnoreCheck])) {
144146
continue;
145147
}
146148

0 commit comments

Comments
 (0)