From 50d95defeee6b0d59a8e2e5b7da3c513743f8340 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Wed, 12 Feb 2020 22:58:08 -0500 Subject: [PATCH] - Fixed two bugs within FormContext's class --- src/Method/FormContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Method/FormContext.php b/src/Method/FormContext.php index b4dd42c..565d272 100644 --- a/src/Method/FormContext.php +++ b/src/Method/FormContext.php @@ -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)