From 341f5b46f6aba2104e40586ff30391aa6f087d70 Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 26 Dec 2024 09:24:12 +0000 Subject: [PATCH] refactor getopt() call --- bin/daemon.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/daemon.php b/bin/daemon.php index dcb668acd6..ef9e452647 100755 --- a/bin/daemon.php +++ b/bin/daemon.php @@ -28,9 +28,7 @@ use Friendica\Util\DateTimeFormat; use Psr\Log\LoggerInterface; // Get options -$shortopts = 'f'; -$longopts = ['foreground']; -$options = getopt($shortopts, $longopts); +$options = getopt('f', ['foreground']); // Ensure that daemon.php is executed from the base path of the installation chdir(dirname(__DIR__));