| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function Link($action = null) |
||
| 44 | { |
||
| 45 | $id = ($this->block) ? $this->block->ID : null; |
||
| 46 | $segment = Controller::join_links('block', $id, $action); |
||
| 47 | |||
| 48 | if ($page = Director::get_current_page()) { |
||
| 49 | return $page->Link($segment); |
||
| 50 | } |
||
| 51 | |||
| 52 | return Controller::curr()->Link($segment); |
||
| 53 | } |
||
| 54 | |||
| 83 |
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..