From: Art4 Date: Thu, 26 Dec 2024 09:24:12 +0000 (+0000) Subject: refactor getopt() call X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=341f5b46f6aba2104e40586ff30391aa6f087d70;p=friendica.git refactor getopt() call --- 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__));