From 483624015ca782bd94415ffee2124ed5ee8d5de0 Mon Sep 17 00:00:00 2001 From: carry0987 Date: Thu, 15 Feb 2024 14:35:01 +0800 Subject: [PATCH] Update getOptions --- composer.json | 2 +- src/Config/Config.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index e9e290a..276adf7 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "keywords": ["i18n", "php-i18n", "language"], "type": "library", "require": { - "php": ">=8.0" + "php": ">=7.4" }, "license": "MIT", "autoload": { diff --git a/src/Config/Config.php b/src/Config/Config.php index aa6b930..ad4c61a 100644 --- a/src/Config/Config.php +++ b/src/Config/Config.php @@ -48,7 +48,7 @@ public static function setOptions(array $options): void } } - public static function getOptions(string $key = null, mixed $default = null): mixed + public static function getOptions(string $key = null, $default = null) { if ($key) { return self::$config[$key] ?? $default;