Skip to content

Commit

Permalink
Merge pull request #7837 from ThomasLandauer/pr-7835
Browse files Browse the repository at this point in the history
Avoiding double spaces (v2)
  • Loading branch information
orklah committed Apr 3, 2022
2 parents c209c66 + 587039f commit ab26e6b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

use function array_merge;
use function array_shift;
use function rtrim;
use function strtolower;

/**
Expand Down Expand Up @@ -192,7 +193,8 @@ public static function analyze(
) {
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()
Expand Down

0 comments on commit ab26e6b

Please sign in to comment.