From ae971fee387a1c863a18473df10787ca1216bc7d Mon Sep 17 00:00:00 2001 From: Najdanovic Ivan Date: Mon, 27 Jan 2020 15:39:47 +0100 Subject: [PATCH] HTML Helper - Fix attribute type for lists --- system/Helpers/html_helper.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/system/Helpers/html_helper.php b/system/Helpers/html_helper.php index 72891a63328c..0d3c8bb8b214 100755 --- a/system/Helpers/html_helper.php +++ b/system/Helpers/html_helper.php @@ -51,11 +51,11 @@ * Generates an HTML unordered list from an single or * multi-dimensional array. * - * @param array $list - * @param string $attributes HTML attributes + * @param array $list + * @param mixed $attributes HTML attributes string, array, object * @return string */ - function ul(array $list, string $attributes = ''): string + function ul(array $list, $attributes = ''): string { return _list('ul', $list, $attributes); } @@ -70,11 +70,11 @@ function ul(array $list, string $attributes = ''): string * * Generates an HTML ordered list from an single or multi-dimensional array. * - * @param array $list - * @param string $attributes HTML attributes + * @param array $list + * @param mixed $attributes HTML attributes string, array, object * @return string */ - function ol(array $list, string $attributes = ''): string + function ol(array $list, $attributes = ''): string { return _list('ol', $list, $attributes); } @@ -91,11 +91,11 @@ function ol(array $list, string $attributes = ''): string * * @param string $type * @param mixed $list - * @param string $attributes + * @param mixed $attributes string, array, object * @param integer $depth * @return string */ - function _list(string $type = 'ul', $list = [], string $attributes = '', int $depth = 0): string + function _list(string $type = 'ul', $list = [], $attributes = '', int $depth = 0): string { // Set the indentation based on the depth $out = str_repeat(' ', $depth)