| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function configureOptions(OptionsResolver $options) |
||
| 39 | { |
||
| 40 | $options->setDefault('property', null); |
||
| 41 | $options->setAllowedTypes('property', ['string', 'null']); |
||
| 42 | $options->setNormalizer('property', function (OptionsResolver $options, $value) { |
||
| 43 | if (null !== $value) { |
||
| 44 | return $value; |
||
| 45 | } |
||
| 46 | |||
| 47 | return $options['column_name']; |
||
| 48 | }); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..