From f5b8c9dab88d2cb0294455e2bf9cce90f0030678 Mon Sep 17 00:00:00 2001 From: Michael Nabil <46572405+michaelnabil230@users.noreply.github.com> Date: Fri, 15 Jul 2022 08:01:25 +0200 Subject: [PATCH] Fix type of return functions --- src/Stores/AbstractStore.php | 8 ++++---- src/helpers.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Stores/AbstractStore.php b/src/Stores/AbstractStore.php index 1e0f359..c31412f 100644 --- a/src/Stores/AbstractStore.php +++ b/src/Stores/AbstractStore.php @@ -52,8 +52,8 @@ abstract protected function postOptions(array $options): void; /** * Get a specific key from the settings data. * - * @param string $key - * @param string $default + * @param string|int|null $key + * @param mixed $default * * @return mixed */ @@ -76,7 +76,7 @@ abstract public function loadedData(): void; /** * Set a specific key to a value in the settings data. * - * @param string|array $key + * @param mixed $key * @param mixed $value * * @return $this @@ -99,7 +99,7 @@ public function set($key, $value = null): self /** * Determine if a key exists in the settings data. * - * @param string $key + * @param string|array $key * * @return bool */ diff --git a/src/helpers.php b/src/helpers.php index 869efd5..18b39b1 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -12,7 +12,7 @@ * Get the setting manager instance. * * @param mixed $key - * @param string|null $default + * @param mixed $default * * @return \MichaelNabil230\LaravelSetting\Stores\AbstractStore */