1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00
This commit is contained in:
Daniil Gentili 2022-07-27 18:00:24 +02:00
parent e19589117d
commit c2a8d1bb06
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -783,7 +783,8 @@ class CallAnalyzer
if ($intersection === null) {
IssueBuffer::maybeAdd(
new TypeDoesNotContainType(
$asserted_type->getId() . ' is not contained by ' . $assertion_type->getId(),
$asserted_type->getId() . ' is not contained by '
. $assertion_type->getId(),
new CodeLocation($statements_analyzer->getSource(), $expr),
$asserted_type->getId() . ' ' . $assertion_type->getId()
),
@ -812,7 +813,8 @@ class CallAnalyzer
)) {
IssueBuffer::maybeAdd(
new TypeDoesNotContainType(
$asserted_type->getId() . ' is not contained by ' . $assertion_type->getId(),
$asserted_type->getId() . ' is not contained by '
. $assertion_type->getId(),
new CodeLocation($statements_analyzer->getSource(), $expr),
$asserted_type->getId() . ' ' . $assertion_type->getId()
),