| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 35 | protected function configureOptions(OptionsResolver $resolver): void |
||
| 36 | { |
||
| 37 | parent::configureOptions($resolver); |
||
| 38 | |||
| 39 | $resolver |
||
| 40 | ->setDefault('vat_number', null) |
||
| 41 | ->setAllowedTypes('vat_number', ['null', 'string']) |
||
| 42 | ->setDefault('vat_valid', null) |
||
| 43 | ->setAllowedTypes('vat_valid', ['null', 'bool']) |
||
| 44 | ->setDefault('vat_validated_at', null) |
||
| 45 | ->setAllowedTypes('vat_validated_at', ['null', 'string']) |
||
| 46 | ; |
||
| 49 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: