Skip to content

Commit

Permalink
Update the return type.
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Apr 5, 2023
1 parent 23926a4 commit 87a114a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/html_helper.php
Expand Up @@ -48,9 +48,9 @@ function e(mixed $string): string
* @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();
Expand Down

0 comments on commit 87a114a

Please sign in to comment.