Skip to content
This repository has been archived by the owner on Sep 18, 2019. It is now read-only.

Commit

Permalink
No Exception on Unknown Field Type
Browse files Browse the repository at this point in the history
Removing the exception when an invalid field is encountered, we simply ignore it and move on.
  • Loading branch information
anthonysterling committed Jan 12, 2016
1 parent 77aa471 commit 7c5ec3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Flows.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 7c5ec3a

@andrew-waters
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.