@@ -95,8 +95,8 @@ function site_url($relativePath = '', ?string $scheme = null, ?App $config = nul
9595 * Returns the base URL as defined by the App config.
9696 * Base URLs are trimmed site URLs without the index page.
9797 *
98- * @param mixed $relativePath URI string or array of URI segments
99- * @param string $scheme
98+ * @param array|string $relativePath URI string or array of URI segments
99+ * @param string $scheme
100100 */
101101 function base_url ($ relativePath = '' , ?string $ scheme = null ): string
102102 {
@@ -143,7 +143,7 @@ function current_url(bool $returnObject = false, ?IncomingRequest $request = nul
143143 * If that's not available, however, we'll use a sanitized url from $_SERVER['HTTP_REFERER']
144144 * which can be set by the user so is untrusted and not set by certain browsers/servers.
145145 *
146- * @return mixed| string|URI
146+ * @return string|URI
147147 */
148148 function previous_url (bool $ returnObject = false )
149149 {
@@ -197,10 +197,10 @@ function index_page(?App $altConfig = null): string
197197 *
198198 * Creates an anchor based on the local URL.
199199 *
200- * @param mixed $uri URI string or array of URI segments
201- * @param string $title The link title
202- * @param mixed $attributes Any attributes
203- * @param App|null $altConfig Alternate configuration to use
200+ * @param array|string $uri URI string or array of URI segments
201+ * @param string $title The link title
202+ * @param array|object|string $attributes Any attributes
203+ * @param App|null $altConfig Alternate configuration to use
204204 */
205205 function anchor ($ uri = '' , string $ title = '' , $ attributes = '' , ?App $ altConfig = null ): string
206206 {
@@ -230,10 +230,10 @@ function anchor($uri = '', string $title = '', $attributes = '', ?App $altConfig
230230 * Creates an anchor based on the local URL. The link
231231 * opens a new window based on the attributes specified.
232232 *
233- * @param string $uri the URL
234- * @param string $title the link title
235- * @param mixed $attributes any attributes
236- * @param App|null $altConfig Alternate configuration to use
233+ * @param string $uri the URL
234+ * @param string $title the link title
235+ * @param array|false|object|string $attributes any attributes
236+ * @param App|null $altConfig Alternate configuration to use
237237 */
238238 function anchor_popup ($ uri = '' , string $ title = '' , $ attributes = false , ?App $ altConfig = null ): string
239239 {
@@ -280,9 +280,9 @@ function anchor_popup($uri = '', string $title = '', $attributes = false, ?App $
280280 /**
281281 * Mailto Link
282282 *
283- * @param string $email the email address
284- * @param string $title the link title
285- * @param mixed $attributes any attributes
283+ * @param string $email the email address
284+ * @param string $title the link title
285+ * @param array|object|string $attributes any attributes
286286 */
287287 function mailto (string $ email , string $ title = '' , $ attributes = '' ): string
288288 {
@@ -300,9 +300,9 @@ function mailto(string $email, string $title = '', $attributes = ''): string
300300 *
301301 * Create a spam-protected mailto link written in Javascript
302302 *
303- * @param string $email the email address
304- * @param string $title the link title
305- * @param mixed $attributes any attributes
303+ * @param string $email the email address
304+ * @param string $title the link title
305+ * @param array|object|string $attributes any attributes
306306 */
307307 function safe_mailto (string $ email , string $ title = '' , $ attributes = '' ): string
308308 {
0 commit comments