diff --git a/ServerCommand.php b/ServerCommand.php index a667194..7addee5 100644 --- a/ServerCommand.php +++ b/ServerCommand.php @@ -52,7 +52,7 @@ class ServerCommand extends Command public function execute(InputInterface $input, OutputInterface $output): int { $manager = Kiri::app()->getServer(); - $manager->setDaemon((int)!is_null($input->hasOption('daemon'))); + $manager->setDaemon((int)$input->hasOption('daemon')); $this->scan_file();