- Fixed two bugs within FormContext's class

This commit is contained in:
Dave M. 2020-02-12 22:58:08 -05:00
parent edf7edc9c1
commit 50d95defee
1 changed files with 2 additions and 2 deletions

View File

@ -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)