- Fixed two bugs within FormContext's class
This commit is contained in:
1 parent
edf7edc9c1
commit
50d95defee
1 file changed
+2
-2
@@ -9,7 +9,7 @@ class FormContext implements FormContextInterface
|
||||
{
|
||||
public bool $formSent;
|
||||
|
||||
public array $values;
|
||||
public array $values = [];
|
||||
|
||||
public array $messages = [];
|
||||
|
||||
@@ -53,7 +53,7 @@ class FormContext implements FormContextInterface
|
||||
|
||||
public function __isset($key)
|
||||
{
|
||||
return array_key_exists($key, $_SESSION);
|
||||
return array_key_exists($key, $this->values);
|
||||
}
|
||||
|
||||
public function __unset($key)
|
||||
|
||||
Reference in new issue
Block a user