Form : cast error : integer instead of string
This commit is contained in:
+4
-4
@@ -61,7 +61,7 @@ class Form
|
|||||||
/**
|
/**
|
||||||
* Define a class for form object
|
* Define a class for form object
|
||||||
*/
|
*/
|
||||||
public $formClass = "form-horizontal";
|
public string $formClass = "form-horizontal";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The logging callable method
|
* The logging callable method
|
||||||
@@ -141,7 +141,7 @@ class Form
|
|||||||
* Set the fieldwidth
|
* Set the fieldwidth
|
||||||
* @param integer $val The fieldwidth
|
* @param integer $val The fieldwidth
|
||||||
*/
|
*/
|
||||||
public function fieldwidth($val): self
|
public function fieldwidth(int $val): self
|
||||||
{
|
{
|
||||||
$this->fieldwidth = $val;
|
$this->fieldwidth = $val;
|
||||||
return $this;
|
return $this;
|
||||||
@@ -149,9 +149,9 @@ class Form
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the formClass
|
* 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;
|
$this->formClass = $val;
|
||||||
return $this;
|
return $this;
|
||||||
|
|||||||
Reference in New Issue
Block a user