]> git.mxchange.org Git - friendica.git/commitdiff
Fix possible falsy return of getopt()
authorArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 12:18:03 +0000 (12:18 +0000)
committerArt4 <art4@wlabs.de>
Thu, 26 Dec 2024 12:18:03 +0000 (12:18 +0000)
.phpstan.neon
bin/daemon.php

index 687b9d2f985fcbfc5157ac647aaef6c062d75cda..0aad06f8a616f79157e01785bf760ccd3bcd4f7c 100644 (file)
@@ -7,8 +7,9 @@ parameters:
 
     paths:
         - addon/
-        - src/
+        - bin/daemon.php
         - index.php
+        - src/
 
     excludePaths:
         analyse:
index 83774c7a2de4054baeb12dac334c5c37c3509de3..06e8574cae8cd3801926d21e70387f343eabda1f 100755 (executable)
@@ -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 ?: []);