1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Merge pull request #7837 from ThomasLandauer/pr-7835

Avoiding double spaces (v2)
This commit is contained in:
orklah 2022-04-03 20:29:48 +02:00 committed by GitHub
commit ab26e6b2f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,7 @@ use Psalm\Type\Atomic\TTemplateParam;
use function array_merge;
use function array_shift;
use function rtrim;
use function strtolower;
/**
@ -192,7 +193,8 @@ class InstancePropertyFetchAnalyzer
) {
IssueBuffer::maybeAdd(
new PossiblyNullPropertyFetch(
'Cannot get property on possibly null variable ' . $stmt_var_id . ' of type ' . $stmt_var_type,
rtrim('Cannot get property on possibly null variable ' . $stmt_var_id)
. ' of type ' . $stmt_var_type,
new CodeLocation($statements_analyzer->getSource(), $stmt)
),
$statements_analyzer->getSuppressedIssues()