| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function send(MessageInterface $message): void |
||
| 43 | { |
||
| 44 | $tag = $this->client->newTag(); |
||
| 45 | |||
| 46 | $this->client |
||
| 47 | ->emit(new AppendCommand($tag, $this->mailbox, strlen((string)$message), new ParenthesizedList())) |
||
| 48 | ->last() |
||
| 49 | ->assertContinuation(); |
||
| 50 | |||
| 51 | $this->client |
||
| 52 | ->emit(new AppendDataRequest($tag, $message)) |
||
| 53 | ->last() |
||
| 54 | ->assertCompletion(CompletionResult::ok()) |
||
| 55 | ->assertTagged(); |
||
| 56 | } |
||
| 57 | } |
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: