浏览代码

Fix up signature

mscherer 2 年之前
父节点
当前提交
2333d6721e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/View/Helper/FormHelper.php

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

@@ -40,17 +40,17 @@ class FormHelper extends CakeFormHelper {
 	/**
 	 * Overwrite to allow FormConfig Configure settings to be applied.
 	 *
-	 * @param mixed $model The context for which the form is being defined. Can
+	 * @param mixed $context The context for which the form is being defined. Can
 	 *   be an ORM entity, ORM resultset, or an array of meta data. You can use false or null
 	 *   to make a model-less form.
 	 * @param array<string, mixed> $options An array of html attributes and options.
 	 * @return string An formatted opening FORM tag.
 	 */
-	public function create($model = null, array $options = []): string {
+	public function create(mixed $context = null, array $options = []): string {
 		$defaults = ['novalidate' => $this->_defaultConfig['novalidate']];
 		$options += $defaults;
 
-		return parent::create($model, $options);
+		return parent::create($context, $options);
 	}
 
 }