| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 10 | public function decorate(&$body, SearchCriteria $criteria) |
|
| 37 | { |
||
| 38 | 10 | $decorators = (new PluginFactory())->instance($this->manganel->decorators, $criteria, [ |
|
| 39 | BodyDecoratorInterface::class |
||
| 40 | 10 | ]); |
|
| 41 | |||
| 42 | 10 | foreach ($decorators as $decorator) |
|
| 43 | { |
||
| 44 | /* @var $decorator BodyDecoratorInterface */ |
||
| 45 | 10 | if ($decorator instanceof ManganelAwareInterface) |
|
| 46 | 10 | { |
|
| 47 | 10 | $decorator->setManganel($this->manganel); |
|
| 48 | 10 | } |
|
| 49 | 10 | $decorator->decorate($body, $criteria); |
|
| 50 | 10 | } |
|
| 51 | 10 | } |
|
| 52 | |||
| 54 |
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..