Browse Source

Merge pull request #10712 from cakephp/bugfix/docblock

Fix doc block for HtmlHelper::link()
Mark Story 8 years ago
parent
commit
b20e200a48
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/View/Helper/HtmlHelper.php

+ 2 - 1
src/View/Helper/HtmlHelper.php

@@ -334,7 +334,8 @@ class HtmlHelper extends Helper
      *   over value of `escape`)
      * - `confirm` JavaScript confirmation message.
      *
-     * @param string $title The content to be wrapped by `<a>` tags.
+     * @param string|array $title The content to be wrapped by `<a>` tags.
+     *   Can also be array if $url is null and will use the URL as title then.
      * @param string|array|null $url Cake-relative URL or array of URL parameters, or
      *   external URL (starts with http://)
      * @param array $options Array of options and HTML attributes.