Fix possible falsy return of getopt()

This commit is contained in:
Art4 2024-12-26 12:18:03 +00:00
parent 894cd5814f
commit 619cb730ef
2 changed files with 3 additions and 2 deletions

View file

@ -7,8 +7,9 @@ parameters:
paths:
- addon/
- src/
- bin/daemon.php
- index.php
- src/
excludePaths:
analyse:

View file

@ -31,4 +31,4 @@ $dice = (new Dice())->addRules(require(dirname(__DIR__) . '/static/dependencies.
$app = \Friendica\App::fromDice($dice);
$app->processDaemon($_SERVER['argv'] ?? [], $options);
$app->processDaemon($_SERVER['argv'] ?? [], $options ?: []);