From e564918bab02b6fcb85105ea28f617fee3ff7451 Mon Sep 17 00:00:00 2001 From: Sandro Keil Date: Wed, 9 Dec 2020 12:01:54 +0100 Subject: [PATCH] Fix throw exception line --- src/ValueObject/EnumFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ValueObject/EnumFactory.php b/src/ValueObject/EnumFactory.php index c28503c..ba1d6ec 100644 --- a/src/ValueObject/EnumFactory.php +++ b/src/ValueObject/EnumFactory.php @@ -299,7 +299,7 @@ private function throwExceptionLine(string $argumentName): string { $argumentName = ($this->propertyNameFilter)($argumentName); - $name = \ucfirst(($this->constValueFilter)($argumentName)); + $name = \ucfirst($argumentName); return 'throw Invalid' . $name . '::for' . $name . '($' . $argumentName . ');'; }