| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 93.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class SyncDriver implements QueueInterface |
||
| 18 | { |
||
| 19 | use QueueTrait; |
||
| 20 | |||
| 21 | 7 | public function __construct( |
|
| 22 | private readonly Handler $coreHandler |
||
| 23 | ) { |
||
| 24 | 7 | } |
|
| 25 | |||
| 26 | /** @inheritdoc */ |
||
| 27 | 6 | public function push(string $name, mixed $payload = [], OptionsInterface $options = null): string |
|
| 45 | } |
||
| 46 | } |
||
| 47 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
integervalues, zero is a special case, in particular the following results might be unexpected: