From 935d90b2696f9f1c4247a5eae75ffc9f5786262e 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/ContactElement.php | 8 ++++---- Models/Profile.php | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 17cfc47..0be6743 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/ContactElement.php b/Models/ContactElement.php index e1e5ea6..31833bc 100644 --- a/Models/ContactElement.php +++ b/Models/ContactElement.php @@ -43,7 +43,7 @@ class ContactElement return $this->id; } - public function setType(int $type) /* : void */ + public function setType(int $type) : void { $this->type = $type; } @@ -53,7 +53,7 @@ class ContactElement return $this->type; } - public function setSubtype(int $type) /* : void */ + public function setSubtype(int $type) : void { $this->subtype = $type; } @@ -68,7 +68,7 @@ class ContactElement return $this->value; } - public function setValue(string $value) /* : void */ + public function setValue(string $value) : void { $this->value = $value; } @@ -78,7 +78,7 @@ class ContactElement return $this->description; } - public function setDescription(string $description) /* : void */ + public function setDescription(string $description) : void { $this->description = $description; } diff --git a/Models/Profile.php b/Models/Profile.php index 354a2e0..67373fb 100644 --- a/Models/Profile.php +++ b/Models/Profile.php @@ -75,12 +75,12 @@ class Profile return $this->image; } - public function setImage(Media $image) /* : void */ + public function setImage(Media $image) : void { $this->image = $image; } - public function setAccount(Account $account) /* : void */ + public function setAccount(Account $account) : void { $this->account = $account; } @@ -90,7 +90,7 @@ class Profile return $this->account ?? new NullAccount(); } - public function setBirthday(\DateTime $birthday) /* : void */ + public function setBirthday(\DateTime $birthday) : void { $this->birthday = $birthday; }