1 | <?php |
||
9 | final class EventHandlerFailedHandlingEvent |
||
10 | { |
||
11 | /** @var \Spatie\EventProjector\EventHandlers\EventHandler */ |
||
12 | public $eventHandler; |
||
13 | |||
14 | /** @var \Spatie\EventProjector\Models\EloquentStoredEvent */ |
||
15 | public $storedEvent; |
||
16 | |||
17 | /** @var \Exception */ |
||
18 | public $exception; |
||
19 | |||
20 | public function __construct(EventHandler $eventHandler, StoredEvent $storedEvent, Exception $exception) |
||
28 | } |
||
29 |
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.