1 | <?php |
||
13 | class Queue implements QueueInterface |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var Queue |
||
18 | */ |
||
19 | private $baseQueue; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | private $kernelOptions; |
||
25 | |||
26 | /** |
||
27 | * @var EventDispatcher |
||
28 | */ |
||
29 | private $dispatcher; |
||
30 | |||
31 | |||
32 | /** |
||
33 | * Queue constructor. |
||
34 | * @param QueueInterface $baseQueue |
||
35 | * @param EventDispatcherInterface $dispatcher |
||
36 | * @param array $kernelOptions |
||
37 | */ |
||
38 | public function __construct(QueueInterface $baseQueue, EventDispatcherInterface $dispatcher, array $kernelOptions) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function receive(QueueName $queueName) |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function send(JobInterface $job) |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function delete(MessageInterface $message) |
||
88 | |||
89 | |||
90 | } |
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.