From 7c5ec3a1c608309051d38575fe6f20e958be3bd4 Mon Sep 17 00:00:00 2001 From: Anthony Sterling Date: Tue, 12 Jan 2016 12:35:05 +0000 Subject: [PATCH] No Exception on Unknown Field Type Removing the exception when an invalid field is encountered, we simply ignore it and move on. --- src/Flows.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Flows.php b/src/Flows.php index a30a388..b954990 100755 --- a/src/Flows.php +++ b/src/Flows.php @@ -38,8 +38,9 @@ public function build() { // Loop fields foreach ($this->fields as &$field) { + if (!$this->_isValidType($field['type'])) { - throw new InvalidFieldType('Field type '.$field['type'].' was not found'); + continue; } // Setup args