| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function render($day) |
||
| 27 | { |
||
| 28 | $this->getBlockModel()->setMeetingId($this->getMeetingId()); |
||
| 29 | $blocks = $this->getBlockModel()->findByDay($day); |
||
| 30 | |||
| 31 | $template = $this->getTemplate(); |
||
| 32 | $template->setFile($this->buildTemplatePath()); |
||
| 33 | $template->blocks = $blocks; |
||
|
|
|||
| 34 | $template->render(); |
||
| 35 | } |
||
| 36 | |||
| 76 |
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: