| 1 | <?php |
||
| 9 | class TwigRenderer implements RendererInterface, LoggerAwareInterface { |
||
| 10 | |||
| 11 | use LoggerAwareTrait; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var Twig_Environment |
||
| 15 | */ |
||
| 16 | public $twig; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param \Twig_Environment $twig Your Twig_Environment instance |
||
| 20 | * @param LoggerInterface|null $logger Optional: PSR-3 Logger |
||
| 21 | */ |
||
| 22 | public function __construct (\Twig_Environment $twig, LoggerInterface $logger = null ) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritDoc } |
||
| 30 | */ |
||
| 31 | public function __invoke( $template, array $context = array()) |
||
| 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..