Skip to content

Commit 955da27

Browse files
committed
fix
1 parent cf11edf commit 955da27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Psalm/Internal/Analyzer/ClassLikeAnalyzer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public static function checkFullyQualifiedClassLikeName(
286286
if (!$check_classes) {
287287
return null;
288288
}
289-
if (!$options->allow_trait || !$codebase->classlikes->traitExists($fq_class_name, $context, !$options->inferred ? $code_location : null)) {
289+
if (!$options->allow_trait || !$codebase->classlikes->traitExists($fq_class_name, !$options->inferred ? $code_location : null, $context)) {
290290
if ($options->from_docblock) {
291291
if (IssueBuffer::accepts(
292292
new UndefinedDocblockClass(

0 commit comments

Comments
 (0)