Browse Source

Adjust type hint and documentation.

Mark Scherer 11 years ago
parent
commit
592b03cb6a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/View/Helper/FormHelper.php

+ 3 - 3
src/View/Helper/FormHelper.php

@@ -490,12 +490,12 @@ class FormHelper extends Helper
      * Closes an HTML form, cleans up values set by FormHelper::create(), and writes hidden
      * input fields where appropriate.
      *
-     * @param array $secureAttributes will be passed as html attributes into the hidden input elements generated for the
-     *   Security Component.
+     * @param array $secureAttributes Secure attibutes which will be passed as HTML attributes
+     *   into the hidden input elements generated for the Security Component.
      * @return string A closing FORM tag.
      * @link http://book.cakephp.org/3.0/en/views/helpers/form.html#closing-the-form
      */
-    public function end($secureAttributes = [])
+    public function end(array $secureAttributes = [])
     {
         $out = '';
         if ($this->requestType !== 'get' &&