| 1 | <?php |
||
| 17 | class EmailParser { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $raw_message |
||
| 21 | * |
||
| 22 | * @return Email |
||
| 23 | */ |
||
| 24 | public function parse($raw_message) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $content |
||
| 47 | * |
||
| 48 | * @return string[] |
||
| 49 | */ |
||
| 50 | protected function parseLinksFromContent($content) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param string $headers |
||
| 65 | * |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | protected function parseRecipient($headers) |
||
| 78 | } |
||
| 79 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: