From accb47f442b1be66cda176137e90afebcbb5cf92 Mon Sep 17 00:00:00 2001 From: Marc Scholten Date: Thu, 2 Mar 2017 13:42:59 +0100 Subject: [PATCH] Fixed `InvalidValueException` being thrown instead of `NotFoundException` --- src/AbstractValueParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AbstractValueParser.php b/src/AbstractValueParser.php index af010ab..5554afd 100644 --- a/src/AbstractValueParser.php +++ b/src/AbstractValueParser.php @@ -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;