Skip to content

Commit

Permalink
Merge pull request #44 from mpscholten/fix-exceptions
Browse files Browse the repository at this point in the history
Fixed `InvalidValueException` being thrown instead of `NotFoundException`
  • Loading branch information
mpscholten authored Mar 2, 2017
2 parents 413da18 + accb47f commit 45ae18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractValueParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function required($invalidValueMessage = null, $notFoundMessage = null)
$notFoundMessage = $this->config->getExceptionMessageFactory()->createNotFoundMessage($this->name);
}

throw $this->config->getExceptionFactory()->createInvalidValueException($notFoundMessage);
throw $this->config->getExceptionFactory()->createNotFoundException($notFoundMessage);
}

return $this->value;
Expand Down

0 comments on commit 45ae18a

Please sign in to comment.