@@ -166,7 +166,7 @@ |
||
| 166 | 166 | |
| 167 | 167 | private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure |
| 168 | 168 | { |
| 169 | - return function (Options $options, array $couponDefinitions) use ($couponFactory): array { |
|
| 169 | + return function (Options $options, array $couponDefinitions) use ($couponFactory) : array { |
|
| 170 | 170 | if (null === $couponFactory) { |
| 171 | 171 | throw new \RuntimeException('You must configure a $couponFactory'); |
| 172 | 172 | } |
@@ -46,7 +46,8 @@ |
||
| 46 | 46 | { |
| 47 | 47 | $this |
| 48 | 48 | ->shouldThrow(\InvalidArgumentException::class) |
| 49 | - ->during('validate', ['', new class() extends Constraint { |
|
| 49 | + ->during('validate', ['', new class() extends Constraint |
|
| 50 | + { |
|
| 50 | 51 | }]) |
| 51 | 52 | ; |
| 52 | 53 | } |