| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | $cell->value = $this->accessor->getValue($cell->context, $property); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function configureOptions(OptionsResolver $options) |
||
| 33 | { |
||
| 34 | $options->setDefault('property', null); |
||
| 35 | $options->setAllowedTypes('property', ['string', 'null']); |
||
| 36 | $options->setNormalizer('property', function (OptionsResolver $options, $value) { |
||
| 37 | if (null !== $value) { |
||
| 38 | return $value; |
||
| 39 | } |
||
| 40 | |||
| 41 | return $options['column_name']; |
||
| 42 | }); |
||
| 43 | $options->setNormalizer('sort_field', function (OptionsResolver $options, $value) { |
||
| 56 |
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..