@@ -32,7 +32,7 @@ |
||
| 32 | 32 | public function validate($value, Constraint $constraint): void |
| 33 | 33 | { |
| 34 | 34 | if (!$constraint instanceof Enum) { |
| 35 | - throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\Enum'); |
|
| 35 | + throw new UnexpectedTypeException($constraint, __NAMESPACE__ . '\Enum'); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | $constraint->choices = null; |
@@ -15,16 +15,16 @@ |
||
| 15 | 15 | |
| 16 | 16 | public static function classDoNotExists(string $class): self |
| 17 | 17 | { |
| 18 | - return new self("Class $class do not exists."); |
|
| 18 | + return new self("class $class do not exists."); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public static function classHasNoPublicConstant(string $class): self |
| 22 | 22 | { |
| 23 | - return new self("Class $class has no public constant."); |
|
| 23 | + return new self("class $class has no public constant."); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public static function noConstantMathingPattern(string $pattern): self |
| 27 | 27 | { |
| 28 | - return new self("Pattern $pattern matches no constant."); |
|
| 28 | + return new self("pattern $pattern matches no constant."); |
|
| 29 | 29 | } |
| 30 | 30 | } |