From e7d0d2b03272a5fad8e651738c82ea14721f06a6 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/Project.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index f3503e4..5600860 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/Project.php b/Models/Project.php index dcffda9..aea136e 100644 --- a/Models/Project.php +++ b/Models/Project.php @@ -96,7 +96,7 @@ class Project return $this->media; } - public function addMedia($media) /* : void */ + public function addMedia($media) : void { $this->media[] = $media; } @@ -126,7 +126,7 @@ class Project return $this->progress; } - public function setProgress(int $progress) /* : void */ + public function setProgress(int $progress) : void { $this->progress = $progress; } @@ -136,7 +136,7 @@ class Project return $this->progressType; } - public function setProgressType(int $type) /* : void */ + public function setProgressType(int $type) : void { $this->progressType = $type; }