Form : cast error : integer instead of string

This commit is contained in:
Dominique FOURNIER
2026-07-24 15:55:56 +02:00
parent b8799991a1
commit 97056991af
+4 -4
View File
@@ -61,7 +61,7 @@ class Form
/**
* Define a class for form object
*/
public $formClass = "form-horizontal";
public string $formClass = "form-horizontal";
/**
* The logging callable method
@@ -141,7 +141,7 @@ class Form
* Set the fieldwidth
* @param integer $val The fieldwidth
*/
public function fieldwidth($val): self
public function fieldwidth(int $val): self
{
$this->fieldwidth = $val;
return $this;
@@ -149,9 +149,9 @@ class Form
/**
* Set the formClass
* @param integer $val The formClass
* @param string $val The formClass
*/
public function formClass($val): self
public function formClass(string $val): self
{
$this->formClass = $val;
return $this;