public function getRunner(?object
$application): RunnerInterface
{ $application ??=
static fn () => 0;
if ($application instanceof RunnerInterface
) { return $application;
} if (!
$application instanceof \Closure
) { if ($runtime =
$this->
resolveRuntime($application::
class)) { return $runtime->
getRunner($application);
} if (!\
is_callable($application)) { throw new \
LogicException(sprintf('"%s" doesn\'t know how to handle apps of type "%s".',
get_debug_type($this),
get_debug_type($application)));
} $application =
$application(...
);
} if ($_SERVER[$this->options
['debug_var_name'
]] && ($r =
new \
ReflectionFunction($application)) &&
$r->
getNumberOfRequiredParameters()) {