10000 Merge pull request #691 from carusogabriel/null-coalesce-operator · laravel/lumen-framework@b570a57 · GitHub
[go: up one dir, main page]

Skip to content

Commit b570a57

Browse files
authored
Merge pull request #691 from carusogabriel/null-coalesce-operator
[5.5] Use Null Coalesce Operator
2 parents 8ea3d09 + 9a768c6 commit b570a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ function factory()
201201
$arguments = func_get_args();
202202

203203
if (isset($arguments[1]) && is_string($arguments[1])) {
204-
return $factory->of($arguments[0], $arguments[1])->times(isset($arguments[2]) ? $arguments[2] : null);
204+
return $factory->of($arguments[0], $arguments[1])->times($arguments[2] ?? null);
205205
} elseif (isset($arguments[1])) {
206206
return $factory->of($arguments[0])->times($arguments[1]);
207207
} else {

0 commit comments

Comments
 (0)
0