| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function render($day) |
||
| 36 | { |
||
| 37 | $this->getBlockModel()->setMeetingId($this->getMeetingId()); |
||
| 38 | $blocks = $this->getBlockModel()->findByDay($day); |
||
| 39 | |||
| 40 | $template = $this->getTemplate(); |
||
| 41 | $template->setFile($this->buildTemplatePath()); |
||
| 42 | $template->blocks = $blocks; |
||
|
|
|||
| 43 | $template->render(); |
||
| 44 | } |
||
| 45 | |||
| 85 |
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: