diff --git a/system/Helpers/html_helper.php b/system/Helpers/html_helper.php
index 11491f76910d..6c04a86a56b6 100755
--- a/system/Helpers/html_helper.php
+++ b/system/Helpers/html_helper.php
@@ -22,7 +22,7 @@
* Generates an HTML unordered list from an single or
* multi-dimensional array.
*
- * @param mixed $attributes HTML attributes string, array, object
+ * @param array|object|string $attributes HTML attributes string, array, object
*/
function ul(array $list, $attributes = ''): string
{
@@ -36,7 +36,7 @@ function ul(array $list, $attributes = ''): string
*
* Generates an HTML ordered list from an single or multi-dimensional array.
*
- * @param mixed $attributes HTML attributes string, array, object
+ * @param array|object|string $attributes HTML attributes string, array, object
*/
function ol(array $list, $attributes = ''): string
{
@@ -50,8 +50,8 @@ function ol(array $list, $attributes = ''): string
*
* Generates an HTML ordered list from an single or multi-dimensional array.
*
- * @param mixed $list
- * @param mixed $attributes string, array, object
+ * @param array $list
+ * @param array|object|string $attributes string, array, object
*/
function _list(string $type = 'ul', $list = [], $attributes = '', int $depth = 0): string
{
@@ -224,8 +224,8 @@ function script_tag($src = '', bool $indexPage = false): string
*
* Generates link to a CSS file
*
- * @param mixed $href Stylesheet href or an array
- * @param bool $indexPage should indexPage be added to the CSS path.
+ * @param array|string $href Stylesheet href or an array
+ * @param bool $indexPage should indexPage be added to the CSS path.
*/
function link_tag($href = '', string $rel = 'stylesheet', string $type = 'text/css', string $title = '', string $media = '', bool $indexPage = false, string $hreflang = ''): string
{
@@ -281,9 +281,9 @@ function link_tag($href = '', string $rel = 'stylesheet', string $type = 'text/c
* Generates a video element to embed videos. The video element can
* contain one or more video sources
*
- * @param mixed $src Either a source string or an array of sources
- * @param string $unsupportedMessage The message to display if the media tag is not supported by the browser
- * @param string $attributes HTML attributes
+ * @param array|string $src Either a source string or an array of sources
+ * @param string $unsupportedMessage The message to display if the media tag is not supported by the browser
+ * @param string $attributes HTML attributes
*/
function video($src, string $unsupportedMessage = '', string $attributes = '', array $tracks = [], bool $indexPage = false): string
{
@@ -327,9 +327,9 @@ function video($src, string $unsupportedMessage = '', string $attributes = '', a
*
* Generates an audio element to embed sounds
*
- * @param mixed $src Either a source string or an array of sources
- * @param string $unsupportedMessage The message to display if the media tag is not supported by the browser.
- * @param string $attributes HTML attributes
+ * @param array|string $src Either a source string or an array of sources
+ * @param string $unsupportedMessage The message to display if the media tag is not supported by the browser.
+ * @param string $attributes HTML attributes
*/
function audio($src, string $unsupportedMessage = '', string $attributes = '', array $tracks = [], bool $indexPage = false): string
{
diff --git a/system/Helpers/url_helper.php b/system/Helpers/url_helper.php
index 94f430a44b67..f0dcc9d786c8 100644
--- a/system/Helpers/url_helper.php
+++ b/system/Helpers/url_helper.php
@@ -95,8 +95,7 @@ function site_url($relativePath = '', ?string $scheme = null, ?App $config = nul
* Returns the base URL as defined by the App config.
* Base URLs are trimmed site URLs without the index page.
*
- * @param mixed $relativePath URI string or array of URI segments
- * @param string $scheme
+ * @param array|string $relativePath URI string or array of URI segments
*/
function base_url($relativePath = '', ?string $scheme = null): string
{
@@ -143,7 +142,7 @@ function current_url(bool $returnObject = false, ?IncomingRequest $request = nul
* If that's not available, however, we'll use a sanitized url from $_SERVER['HTTP_REFERER']
* which can be set by the user so is untrusted and not set by certain browsers/servers.
*
- * @return mixed|string|URI
+ * @return string|URI
*/
function previous_url(bool $returnObject = false)
{
@@ -197,10 +196,10 @@ function index_page(?App $altConfig = null): string
*
* Creates an anchor based on the local URL.
*
- * @param mixed $uri URI string or array of URI segments
- * @param string $title The link title
- * @param mixed $attributes Any attributes
- * @param App|null $altConfig Alternate configuration to use
+ * @param array|string $uri URI string or array of URI segments
+ * @param string $title The link title
+ * @param array|object|string $attributes Any attributes
+ * @param App|null $altConfig Alternate configuration to use
*/
function anchor($uri = '', string $title = '', $attributes = '', ?App $altConfig = null): string
{
@@ -230,10 +229,10 @@ function anchor($uri = '', string $title = '', $attributes = '', ?App $altConfig
* Creates an anchor based on the local URL. The link
* opens a new window based on the attributes specified.
*
- * @param string $uri the URL
- * @param string $title the link title
- * @param mixed $attributes any attributes
- * @param App|null $altConfig Alternate configuration to use
+ * @param string $uri the URL
+ * @param string $title the link title
+ * @param array|false|object|string $attributes any attributes
+ * @param App|null $altConfig Alternate configuration to use
*/
function anchor_popup($uri = '', string $title = '', $attributes = false, ?App $altConfig = null): string
{
@@ -280,9 +279,9 @@ function anchor_popup($uri = '', string $title = '', $attributes = false, ?App $
/**
* Mailto Link
*
- * @param string $email the email address
- * @param string $title the link title
- * @param mixed $attributes any attributes
+ * @param string $email the email address
+ * @param string $title the link title
+ * @param array|object|string $attributes any attributes
*/
function mailto(string $email, string $title = '', $attributes = ''): string
{
@@ -300,9 +299,9 @@ function mailto(string $email, string $title = '', $attributes = ''): string
*
* Create a spam-protected mailto link written in Javascript
*
- * @param string $email the email address
- * @param string $title the link title
- * @param mixed $attributes any attributes
+ * @param string $email the email address
+ * @param string $title the link title
+ * @param array|object|string $attributes any attributes
*/
function safe_mailto(string $email, string $title = '', $attributes = ''): string
{