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