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