| 1 | <?php |
||
| 8 | class UserSubscribersUpdatedListener |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Notifier |
||
| 12 | */ |
||
| 13 | private $notifier; |
||
| 14 | |||
| 15 | |||
| 16 | /** |
||
| 17 | * UsersRenameNotifierListener constructor. |
||
| 18 | * |
||
| 19 | * @param Notifier $notifier |
||
| 20 | */ |
||
| 21 | public function __construct(Notifier $notifier) |
||
| 25 | |||
| 26 | public function onAppUserSubscribersUpdated(UserSubscribersUpdatedEvent $event): void |
||
| 30 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: