Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0d2ab42

Browse filesBrowse 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
Copy full SHA for 0d2ab42

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎Parser/TokenStream.php

Copy file name to clipboardExpand all lines: Parser/TokenStream.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.