From 5966ec1432fd6f31509891af5cb7e08f2da41af9 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/Promotion.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 10064aa..731a80a 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/Promotion.php b/Models/Promotion.php index 5433369..dbfa561 100644 --- a/Models/Promotion.php +++ b/Models/Promotion.php @@ -92,7 +92,7 @@ class Promotion return $this->media; } - public function addMedia($media) /* : void */ + public function addMedia($media) : void { $this->media[] = $media; }