1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 01:09:38 +01:00

Fix silly bug

This commit is contained in:
Daniil Gentili 2021-09-21 14:11:33 +02:00
parent ba2c2bdaa2
commit f8a959c079
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -443,8 +443,8 @@ class MethodCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expression\
if ($storage->if_this_is_type
&& !UnionTypeComparator::isContainedBy(
$codebase,
$storage->if_this_is_type,
$class_type
$class_type,
$storage->if_this_is_type
)
) {
if (IssueBuffer::accepts(