From: Art4 Date: Thu, 26 Dec 2024 12:18:03 +0000 (+0000) Subject: Fix possible falsy return of getopt() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=619cb730ef3967bd96704b3b8663c4a4c09752a2;p=friendica.git Fix possible falsy return of getopt() --- diff --git a/.phpstan.neon b/.phpstan.neon index 687b9d2f98..0aad06f8a6 100644 --- a/.phpstan.neon +++ b/.phpstan.neon @@ -7,8 +7,9 @@ parameters: paths: - addon/ - - src/ + - bin/daemon.php - index.php + - src/ excludePaths: analyse: diff --git a/bin/daemon.php b/bin/daemon.php index 83774c7a2d..06e8574cae 100755 --- a/bin/daemon.php +++ b/bin/daemon.php @@ -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 ?: []);