Skip to content

Commit 0d2ab42

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 4da56d6 + 0d98207 commit 0d2ab42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/TokenStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function getNextIdentifierOrStar()
162162
}
163163

164164
if ($next->isDelimiter(array('*'))) {
165-
return null;
165+
return;
166166
}
167167

168168
throw SyntaxErrorException::unexpectedToken('identifier or "*"', $next);

0 commit comments

Comments
 (0)