| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function __invoke( $template, array $context = array()) |
||
| 32 | { |
||
| 33 | $this->logger->info("Render Twig template: " . $template, [ |
||
| 34 | 'context' => $context |
||
| 35 | ]); |
||
| 36 | |||
| 37 | $result = $this->twig->render($template, $context ); |
||
| 38 | |||
| 39 | $this->logger->info("Return template output"); |
||
| 40 | |||
| 41 | return $result; |
||
| 42 | |||
| 43 | } |
||
| 44 | } |
||
| 45 |
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..