Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | public function __invoke( $template, array $context = array()) |
||
33 | { |
||
34 | $this->logger->info("Render Smarty template: " . $template, [ |
||
35 | 'context' => $context |
||
36 | ]); |
||
37 | |||
38 | $this->logger->debug("Create template object"); |
||
39 | $tpl = $this->smarty->createTemplate( $template, $this->smarty ); |
||
40 | |||
41 | $this->logger->debug("Assign context variables"); |
||
42 | $tpl->assign( $context ); |
||
43 | |||
44 | $this->logger->info("Return template output"); |
||
45 | |||
46 | return $this->smarty->fetch($tpl); |
||
47 | } |
||
48 | } |
||
49 |
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..