From 4b2ea0bfbf06d3d678df30ea5f9e3e9a6e9ea43c Mon Sep 17 00:00:00 2001 From: vlakoff Date: Tue, 15 Mar 2016 22:35:21 +0100 Subject: [PATCH] Properly reset rules attribute when closing forms --- src/Former/Former.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Former/Former.php b/src/Former/Former.php index 33ef9395..a233cd33 100644 --- a/src/Former/Former.php +++ b/src/Former/Former.php @@ -427,7 +427,7 @@ public function close() // Reset all values $this->errors = null; - $this->rules = null; + $this->rules = array(); return isset($closing) ? $closing : null; }