Skip to content

Commit

Permalink
Merge branch 'php-8.0/squiz-objectoperatorspacing-support-nullsafe-op…
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Sep 2, 2020
2 parents 4efd0ad + a4f0110 commit 356d998
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function register()
return [
T_OBJECT_OPERATOR,
T_DOUBLE_COLON,
T_NULLSAFE_OBJECT_OPERATOR,
];

}//end register()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ thisObject::
testThis();

// phpcs:set Squiz.WhiteSpace.ObjectOperatorSpacing ignoreNewlines false

$this?->testThis();
$this?-> testThis();
$this ?-> testThis();
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ thisObject::
testThis();

// phpcs:set Squiz.WhiteSpace.ObjectOperatorSpacing ignoreNewlines false

$this?->testThis();
$this?->testThis();
$this?->testThis();
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public function getErrorList()
39 => 1,
40 => 2,
42 => 2,
51 => 1,
52 => 2,
];

}//end getErrorList()
Expand Down

0 comments on commit 356d998

Please sign in to comment.