@@ -95,8 +95,7 @@ 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
10099 */
101100 function base_url ($ relativePath = '' , ?string $ scheme = null ): string
102101 {
@@ -143,7 +142,7 @@ function current_url(bool $returnObject = false, ?IncomingRequest $request = nul
143142 * If that's not available, however, we'll use a sanitized url from $_SERVER['HTTP_REFERER']
144143 * which can be set by the user so is untrusted and not set by certain browsers/servers.
145144 *
146- * @return mixed| string|URI
145+ * @return string|URI
147146 */
148147 function previous_url (bool $ returnObject = false )
149148 {
@@ -197,10 +196,10 @@ function index_page(?App $altConfig = null): string
197196 *
198197 * Creates an anchor based on the local URL.
199198 *
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
199+ * @param array|string $uri URI string or array of URI segments
200+ * @param string $title The link title
201+ * @param array|object|string $attributes Any attributes
202+ * @param App|null $altConfig Alternate configuration to use
204203 */
205204 function anchor ($ uri = '' , string $ title = '' , $ attributes = '' , ?App $ altConfig = null ): string
206205 {
@@ -230,10 +229,10 @@ function anchor($uri = '', string $title = '', $attributes = '', ?App $altConfig
230229 * Creates an anchor based on the local URL. The link
231230 * opens a new window based on the attributes specified.
232231 *
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
232+ * @param string $uri the URL
233+ * @param string $title the link title
234+ * @param array|false|object|string $attributes any attributes
235+ * @param App|null $altConfig Alternate configuration to use
237236 */
238237 function anchor_popup ($ uri = '' , string $ title = '' , $ attributes = false , ?App $ altConfig = null ): string
239238 {
@@ -280,9 +279,9 @@ function anchor_popup($uri = '', string $title = '', $attributes = false, ?App $
280279 /**
281280 * Mailto Link
282281 *
283- * @param string $email the email address
284- * @param string $title the link title
285- * @param mixed $attributes any attributes
282+ * @param string $email the email address
283+ * @param string $title the link title
284+ * @param array|object|string $attributes any attributes
286285 */
287286 function mailto (string $ email , string $ title = '' , $ attributes = '' ): string
288287 {
@@ -300,9 +299,9 @@ function mailto(string $email, string $title = '', $attributes = ''): string
300299 *
301300 * Create a spam-protected mailto link written in Javascript
302301 *
303- * @param string $email the email address
304- * @param string $title the link title
305- * @param mixed $attributes any attributes
302+ * @param string $email the email address
303+ * @param string $title the link title
304+ * @param array|object|string $attributes any attributes
306305 */
307306 function safe_mailto (string $ email , string $ title = '' , $ attributes = '' ): string
308307 {
0 commit comments