From 29af3586d07da9786f49bb114275df6467c27cc1 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/Client.php | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 6f2bbb9..91841b5 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/Client.php b/Models/Client.php index f48d514..60d17ad 100644 --- a/Models/Client.php +++ b/Models/Client.php @@ -67,7 +67,7 @@ class Client return $this->number; } - public function setNumber(int $number) /* : void */ + public function setNumber(int $number) : void { $this->number = $number; } @@ -77,7 +77,7 @@ class Client return $this->numberReverse; } - public function setReverseNumber($rev_no) /* : void */ + public function setReverseNumber($rev_no) : void { if (!is_scalar($rev_no)) { throw new \Exception(); @@ -91,7 +91,7 @@ class Client return $this->status; } - public function setStatus(int $status) /* : void */ + public function setStatus(int $status) : void { $this->status = $status; } @@ -101,7 +101,7 @@ class Client return $this->type; } - public function setType(int $type) /* : void */ + public function setType(int $type) : void { $this->type = $type; } @@ -111,7 +111,7 @@ class Client return $this->taxId; } - public function setTaxId(string $taxId) /* : void */ + public function setTaxId(string $taxId) : void { $this->taxId = $taxId; } @@ -136,7 +136,7 @@ class Client return $this->profile; } - public function setProfile(Profile $profile) /* : void */ + public function setProfile(Profile $profile) : void { $this->profile = $profile; } @@ -146,7 +146,7 @@ class Client return $this->files; } - public function addFile(Media $file) /* : void */ + public function addFile(Media $file) : void { $this->files[] = $file; }