File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Psalm/Internal/Analyzer/Statements/Expression/Call Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments