mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Use function
This commit is contained in:
parent
cd3213201d
commit
854a3412fe
@ -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)
|
||||
)
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user