Skip to content

Commit

Permalink
Fixed InvalidValueException being thrown instead of `NotFoundExcept…
Browse files Browse the repository at this point in the history
…ion`
  • Loading branch information
Marc Scholten committed Mar 2, 2017
1 parent 38ea9f1 commit accb47f
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 accb47f

Please sign in to comment.