| 1 | <?php |
||
| 13 | class TwigTemplate implements TemplateInterface |
||
| 14 | { |
||
| 15 | private $template; |
||
| 16 | |||
| 17 | 12 | public function __construct(TemplateWrapper $template) |
|
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | */ |
||
| 25 | 12 | public function getTemplateName() |
|
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function getParentTemplate() |
||
| 34 | { |
||
| 35 | $parent = $this->template->getParent([]); |
||
|
|
|||
| 36 | |||
| 37 | if ($parent === false) |
||
| 38 | { |
||
| 39 | return false; |
||
| 40 | } |
||
| 41 | |||
| 42 | return new TwigTemplate($parent); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | 12 | public function render(array $context = []) |
|
| 52 | } |
||
| 53 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.