Skip to content

Commit 3bbc004

Browse files
committed
minor #10717 unified return null usages (fabpot)
This PR was merged into the 2.3 branch. Discussion ---------- unified return null usages | Q | A | ------------- | --- | License | MIT This PR unifies the way we return `null` from a function or method: * always use `return;` instead of `return null;` (the current code base uses both); * never use `return;` at the end of a function/method. Commits ------- d1d569b unified return null usages
2 parents 0bc1cf7 + e0c2505 commit 3bbc004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Normalizer/GetSetMethodNormalizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function provideCallbacks()
144144
array(
145145
array(
146146
'bar' => function ($bar) {
147-
return null;
147+
return;
148148
},
149149
),
150150
'baz',

0 commit comments

Comments
 (0)