From 97056991afcdf51ee2dd006523d25a3d1a9e5069 Mon Sep 17 00:00:00 2001 From: Dominique FOURNIER Date: Fri, 24 Jul 2026 15:55:56 +0200 Subject: [PATCH] Form : cast error : integer instead of string --- src/Form.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Form.php b/src/Form.php index 2026673..62ad797 100644 --- a/src/Form.php +++ b/src/Form.php @@ -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;