@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use MetaHydrator\MetaHydrator; |
| 8 | 8 | use MetaHydrator\Validator\ValidatorInterface; |
| 9 | 9 | use Mouf\Hydrator\Hydrator; |
| 10 | -use Mouf\Hydrator\TdbmHydrator; |
|
| 11 | 10 | |
| 12 | 11 | /** |
| 13 | 12 | * A custom class parser based on the MetaHydrator behaviour |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | try { |
| 58 | 58 | $parsedValue = $this->parser->parse($rawValue); |
| 59 | 59 | } catch (ParsingException $exception) { |
| 60 | - throw new HydratingException([ $this->key => $exception->getInnerError() ]); |
|
| 60 | + throw new HydratingException([$this->key => $exception->getInnerError()]); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | $this->validate($parsedValue, $object); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $validator->validate($parsedValue, $contextObject); |
| 79 | 79 | } |
| 80 | 80 | } catch (ValidationException $exception) { |
| 81 | - throw new HydratingException([ $this->key => $exception->getInnerError() ]); |
|
| 81 | + throw new HydratingException([$this->key => $exception->getInnerError()]); |
|
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | } |