Skip to content

Commit 45a63a5

Browse files
Use ??= more
1 parent 6d3e119 commit 45a63a5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

GenericRuntime.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ public function getResolver(callable $callable, \ReflectionFunction $reflector =
113113

114114
public function getRunner(?object $application): RunnerInterface
115115
{
116-
if (null === $application) {
117-
$application = static function () { return 0; };
118-
}
116+
$application ??= static function () { return 0; };
119117

120118
if ($application instanceof RunnerInterface) {
121119
return $application;

0 commit comments

Comments
 (0)