From 87a114af9c09dab98a72351bca38ee63ad119e1f Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 5 Apr 2023 15:35:31 +0200 Subject: [PATCH] Update the return type. --- application/helpers/html_helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/helpers/html_helper.php b/application/helpers/html_helper.php index 377bf9ab..33ea345d 100644 --- a/application/helpers/html_helper.php +++ b/application/helpers/html_helper.php @@ -48,9 +48,9 @@ if ( ! function_exists('component')) * @param array $vars Additional parameters for the component. * @param bool $return Whether to return the HTML or echo it directly. * - * @return mixed Return the HTML if the $return argument is TRUE or NULL. + * @return string|object Return the HTML if the $return argument is TRUE or NULL. */ - function component(string $component, array $vars = [], bool $return = FALSE): mixed + function component(string $component, array $vars = [], bool $return = FALSE): string|object { /** @var EA_Controller $CI */ $CI = get_instance();