| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 1 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 2 | public function dispatchQueuedMessage( |
|
| 33 | $payload, |
||
| 34 | string $destination, |
||
| 35 | array $metadataCollection = [], |
||
| 36 | DateTimeImmutable $deliverAt = null, |
||
| 37 | Priority $priority = null |
||
| 38 | ): void { |
||
| 39 | 2 | $this->bus->deliver(new AsynchronousMessage($payload, $destination, $metadataCollection, $deliverAt, $priority)); |
|
| 40 | 2 | } |
|
| 42 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.