| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function render($backlink) |
||
| 29 | { |
||
| 30 | $template = $this->getTemplate(); |
||
| 31 | $template->setFile(__DIR__ . './templates/'.self::TEMPLATE_NAME.'.'.self::TEMPLATE_EXT); |
||
| 32 | $template->user = $this->getUser(); |
||
|
|
|||
| 33 | $template->page = $this->getPresenter()->getName(); |
||
| 34 | $template->backlink = $backlink; |
||
| 35 | $template->render(); |
||
| 36 | } |
||
| 37 | |||
| 58 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: