From 6030a0e8902ec72848bd3da3458c41e546926f93 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sun, 17 Mar 2024 13:49:14 -0400 Subject: [PATCH] Specify typehint --- app/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers.php b/app/helpers.php index 59aa7166a..6892a8193 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -16,7 +16,7 @@ if (!function_exists('object_get_strict')) { * Get an object using dot notation. An object key with a value of null is still considered valid * and will not trigger the response of a default value (unlike object_get). */ - function object_get_strict(object $object, ?string $key, $default = null): mixed + function object_get_strict(object $object, ?string $key, mixed $default = null): mixed { if (is_null($key) || trim($key) == '') { return $object;