Skip to content

Commit 532b563

Browse files
committed
bump
1 parent 0dfe66d commit 532b563

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Psalm/Internal/Analyzer/FunctionLikeAnalyzer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,9 +2202,7 @@ private function getFunctionInformation(
22022202
$closure_type = new TClosure(
22032203
$storage->params,
22042204
$closure_return_type,
2205-
$storage instanceof FunctionLikeStorage
2206-
? $storage->allowed_mutations
2207-
: Mutations::LEVEL_ALL,
2205+
$storage->allowed_mutations,
22082206
$storage instanceof FunctionStorage ? $storage->byref_uses : [],
22092207
);
22102208

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public static function handle(
141141
if ($function_id === 'interface_exists') {
142142
if ($first_arg) {
143143
if ($first_arg->value instanceof PhpParser\Node\Scalar\String_) {
144-
if (!$codebase->classlikes->interfaceExists($first_arg->value->value, $context)) {
144+
if (!$codebase->classlikes->interfaceExists($first_arg->value->value, null, $context)) {
145145
$context->phantom_classes[strtolower($first_arg->value->value)] = true;
146146
}
147147
} elseif ($first_arg->value instanceof PhpParser\Node\Expr\ClassConstFetch
@@ -151,7 +151,7 @@ public static function handle(
151151
) {
152152
$resolved_name = (string) $first_arg->value->class->getAttribute('resolvedName');
153153

154-
if (!$codebase->classlikes->interfaceExists($resolved_name, $context)) {
154+
if (!$codebase->classlikes->interfaceExists($resolved_name, null, $context)) {
155155
$context->phantom_classes[strtolower($resolved_name)] = true;
156156
}
157157
}

0 commit comments

Comments
 (0)