From 3d10908ce6d4b2d7487f6319c5e20c5f96066f99 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/UploadFile.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 1c0737c..33e5e63 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/UploadFile.php b/Models/UploadFile.php index 6a5f681..12394ff 100644 --- a/Models/UploadFile.php +++ b/Models/UploadFile.php @@ -193,7 +193,7 @@ class UploadFile return $result; } - private function interlace(string $extension, string $path) /* : void */ + private function interlace(string $extension, string $path) : void { if ($extension === 'png') { @@ -270,7 +270,7 @@ class UploadFile return $this->maxSize; } - public function setInterlaced(bool $interlaced) /* : void */ + public function setInterlaced(bool $interlaced) : void { $this->interlaced = $interlaced; }