From 76ee4590896d970279f3ba8d47421b4d10281a7d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 13 Mar 2018 20:55:24 +0100 Subject: [PATCH] Nullable+void typehint --- Admin/Install/Navigation.php | 2 +- Models/Event.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index e0023d6..e57d6bc 100644 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -36,7 +36,7 @@ class Navigation * * @since 1.0.0 */ - public static function install(string $path = null, DatabasePool $dbPool = null) /* : void */ + public static function install(string $path = null, DatabasePool $dbPool = null) : void { $navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true); diff --git a/Models/Event.php b/Models/Event.php index 9553d0a..897711b 100644 --- a/Models/Event.php +++ b/Models/Event.php @@ -98,7 +98,7 @@ class Event return $this->media; } - public function addMedia($media) /* : void */ + public function addMedia($media) : void { $this->media[] = $media; } @@ -128,7 +128,7 @@ class Event return $this->progress; } - public function setProgress(int $progress) /* : void */ + public function setProgress(int $progress) : void { $this->progress = $progress; } @@ -138,7 +138,7 @@ class Event return $this->progressType; } - public function setProgressType(int $type) /* : void */ + public function setProgressType(int $type) : void { $this->progressType = $type; }