Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
45 | public function testReject() |
||
46 | { |
||
47 | $message = new Message( |
||
48 | 'queue', |
||
49 | 'handler', |
||
50 | ['foo' => 'bar'] |
||
51 | ); |
||
52 | |||
53 | $exception = new Exception; |
||
54 | |||
55 | $this->emitter |
||
56 | ->expects($this->exactly(2)) |
||
57 | ->method('emit') |
||
58 | ->withConsecutive( |
||
59 | [Event::QUEUE_REJECT, $message, $exception], |
||
60 | [sprintf('%s.%s', Event::QUEUE_REJECT, $message->handler()), $message, $exception] |
||
61 | ); |
||
62 | |||
63 | $this->event->reject($message, $exception); |
||
64 | } |
||
65 | } |
||
66 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..