Skip to content

Commit

Permalink
(fix): mixed types are php >= 8
Browse files Browse the repository at this point in the history
  • Loading branch information
FreakyWizard committed Dec 5, 2024
1 parent 3efef06 commit 11a1736
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Traits/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ trait Helpers
*
* @param string $configFile filename of config file
* @param string $key key of config array
* @param mixed $default default value
* @return mixed
*/
public function config(string $configFile, string $key, mixed $default = null): mixed
public function config(string $configFile, string $key, $default = null)
{
$path = __DIR__ . "/../../config/{$configFile}.php";

Expand All @@ -29,8 +31,10 @@ public function config(string $configFile, string $key, mixed $default = null):
* Get specified rule from configuration.
*
* @param string $key key of config array
* @param mixed $default default value
* @return mixed
*/
public function configRule(string $key, mixed $default = null): mixed
public function configRule(string $key, $default = null)
{
return $this->config('rules', $key, $default);
}
Expand Down

0 comments on commit 11a1736

Please sign in to comment.