Skip to content

Commit

Permalink
fix missing strtolower
Browse files Browse the repository at this point in the history
  • Loading branch information
orklah committed Dec 28, 2020
1 parent 0d5fc2b commit 8849f76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Analyzer/FileAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ private function populateClassLikeAnalyzers(PhpParser\Node\Stmt\ClassLike $stmt)

$fq_class_name = $class_analyzer->getFQCLN();

$this->interface_analyzers_to_analyze[$fq_class_name] = $class_analyzer;
$this->interface_analyzers_to_analyze[strtolower($fq_class_name)] = $class_analyzer;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Scanner/PhpStormMetaScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function (
&& $identifier->args
&& $identifier->args[0]->value instanceof PhpParser\Node\Scalar\LNumber
) {
$function_id = implode('\\', $identifier->name->parts);
$function_id = strtolower(implode('\\', $identifier->name->parts));

if ($map) {
$offset = $identifier->args[0]->value->value;
Expand Down

0 comments on commit 8849f76

Please sign in to comment.