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:
commit
ab26e6b2f3
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user