From e008c094e5fb47f26c770c55720775bcf1ec1434 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 15 Dec 2019 14:29:50 +0100 Subject: [PATCH] fix return type --- Algorithm/Maze/MazeGenerator.php | 2 ++ Utils/Converter/Currency.php | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Algorithm/Maze/MazeGenerator.php b/Algorithm/Maze/MazeGenerator.php index 84a846a2a..40f02f7db 100644 --- a/Algorithm/Maze/MazeGenerator.php +++ b/Algorithm/Maze/MazeGenerator.php @@ -27,6 +27,8 @@ class MazeGenerator { /** * Constructor + * + * @since 1.0.0 * @codeCoverageIgnore */ private function __construct() diff --git a/Utils/Converter/Currency.php b/Utils/Converter/Currency.php index 776e63c80..5e39f9ecb 100644 --- a/Utils/Converter/Currency.php +++ b/Utils/Converter/Currency.php @@ -33,10 +33,10 @@ final class Currency /** * ECB currency rates. * - * @var null|array + * @var array * @since 1.0.0 */ - private static ?array $ecbCurrencies = null; + private static array $ecbCurrencies = []; /** * Constructor. @@ -59,7 +59,7 @@ final class Currency */ public static function resetCurrencies() : void { - self::$ecbCurrencies = null; + self::$ecbCurrencies = []; } /**