From 351a68a14ca15a5d348863f262a28c96d37d0ce4 Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Sun, 20 Jan 2019 15:05:57 +0000 Subject: [PATCH] Remove some return type hints that I missed --- src/Configurables/SafeMode.php | 6 ++++-- src/Configurables/StrictMode.php | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Configurables/SafeMode.php b/src/Configurables/SafeMode.php index bcb8e4b..9bb3715 100644 --- a/src/Configurables/SafeMode.php +++ b/src/Configurables/SafeMode.php @@ -17,12 +17,14 @@ final class SafeMode implements Configurable $this->enabled = $enabled; } - public function enabled(): bool + /** @return bool */ + public function enabled() { return $this->enabled; } - public static function initial(): self + /** @return self */ + public static function initial() { return new self(false); } diff --git a/src/Configurables/StrictMode.php b/src/Configurables/StrictMode.php index a460d31..b693ee5 100644 --- a/src/Configurables/StrictMode.php +++ b/src/Configurables/StrictMode.php @@ -17,12 +17,14 @@ final class StrictMode implements Configurable $this->enabled = $enabled; } - public function enabled(): bool + /** @return bool */ + public function enabled() { return $this->enabled; } - public static function initial(): self + /** @return self */ + public static function initial() { return new self(false); }