Skip to content

Commit 0dfe66d

Browse files
committed
fix
1 parent 955da27 commit 0dfe66d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Psalm/Internal/Analyzer/Statements/Expression/Call/NamedFunctionCallHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public static function handle(
119119
if ($function_id === 'class_exists') {
120120
if ($first_arg) {
121121
if ($first_arg->value instanceof PhpParser\Node\Scalar\String_) {
122-
if (!$codebase->classlikes->classExists($first_arg->value->value, $context)) {
122+
if (!$codebase->classlikes->classExists($first_arg->value->value, null, $context)) {
123123
$context->phantom_classes[strtolower($first_arg->value->value)] = true;
124124
}
125125
} elseif ($first_arg->value instanceof PhpParser\Node\Expr\ClassConstFetch
@@ -129,7 +129,7 @@ public static function handle(
129129
) {
130130
$resolved_name = (string) $first_arg->value->class->getAttribute('resolvedName');
131131

132-
if (!$codebase->classlikes->classExists($resolved_name, $context)) {
132+
if (!$codebase->classlikes->classExists($resolved_name, null, $context)) {
133133
$context->phantom_classes[strtolower($resolved_name)] = true;
134134
}
135135
}

0 commit comments

Comments
 (0)