From 3229697cc406a6c7968f30adbd3f53ec634952e8 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 24 May 2020 16:42:54 +0300 Subject: [PATCH] feat(core): update Config API #428 --- src/flextype/core/Config/Config.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/flextype/core/Config/Config.php b/src/flextype/core/Config/Config.php index 71286602..077a4287 100644 --- a/src/flextype/core/Config/Config.php +++ b/src/flextype/core/Config/Config.php @@ -36,17 +36,15 @@ class Config * @param string $key The key of the config item to get. * @param mixed $default Default value * - * @return array + * @return mixed */ - public function get(string $config, $key, $default = null) : array + public function get(string $config, $key, $default = null) { $config_file = $this->getFileLocation($config); if (Filesystem::has($config_file)) { return Arr::get($this->flextype->serializer->decode(Filesystem::read($config_file), 'yaml'), $key, $default); } - - return []; } /**