1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Use function

This commit is contained in:
Vincent Langlet 2022-01-30 15:32:55 +01:00
parent cd3213201d
commit 854a3412fe

View File

@ -98,7 +98,7 @@ class MethodCallReturnTypeFetcher
if ($premixin_method_id->method_name === 'getcode'
&& $premixin_method_id->fq_class_name !== Exception::class
&& (
in_array(Throwable::class, $class_storage->class_implements)
$codebase->classImplements($premixin_method_id->fq_class_name, Throwable::class)
|| $codebase->interfaceExtends($premixin_method_id->fq_class_name, Throwable::class)
)
) {