| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 59 | public function __toString() |
||
| 60 | { |
||
| 61 | $payload = [ |
||
| 62 | 'text' => $this->getText(), |
||
| 63 | 'link_names' => true, |
||
| 64 | 'unfurl_links' => true, |
||
| 65 | 'unfurl_media' => true, |
||
| 66 | 'mrkdwn' => true, |
||
| 67 | 'response_type' => $this->responseType, |
||
| 68 | ]; |
||
| 69 | |||
| 70 | $payload['attachments'] = $this->attachments; |
||
| 71 | |||
| 72 | $this->setContent($payload); |
||
| 73 | |||
| 74 | return parent::__toString(); |
||
| 75 | } |
||
| 76 | } |
||
| 77 |
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..