diff --git a/Models/Event.php b/Models/Event.php index c2d3a29..ce219b0 100755 --- a/Models/Event.php +++ b/Models/Event.php @@ -132,7 +132,7 @@ class Event * @var int * @since 1.0.0 */ - public int $calendar; + public int $calendar = 0; /** * People. @@ -161,7 +161,6 @@ class Event $this->createdAt = new \DateTimeImmutable('now'); $this->location = new Location(); $this->schedule = new Schedule(); - $this->calendar = 0; $this->start = new \DateTime('now'); $this->end = new \DateTime('now'); } diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php index b904f0c..44438e2 100755 --- a/tests/Bootstrap.php +++ b/tests/Bootstrap.php @@ -381,7 +381,7 @@ function phpServe() : void // Execute the command and store the process ID $output = []; - echo \sprintf('Starting server...') . \PHP_EOL; + echo 'Starting server...' . \PHP_EOL; echo \sprintf(' Current directory: %s', \getcwd()) . \PHP_EOL; echo \sprintf(' %s', $command); \exec($command, $output); @@ -406,7 +406,7 @@ function phpServe() : void // Kill the web server when the process ends \register_shutdown_function(function() use ($killCommand, $pid) : void { - echo \PHP_EOL . \sprintf('Stopping server...') . \PHP_EOL; + echo \PHP_EOL . 'Stopping server...' . \PHP_EOL; echo \sprintf(' %s - Killing process with ID %d', \date('r'), $pid) . \PHP_EOL; \exec($killCommand . $pid); });