1 | <?php |
||
16 | class NotificationManager |
||
17 | { |
||
18 | /** |
||
19 | * @var ChannelManager |
||
20 | */ |
||
21 | private $channelManager; |
||
22 | /** |
||
23 | * @var DatabaseNotificationManager |
||
24 | */ |
||
25 | private $databaseNotificationManager; |
||
26 | |||
27 | public function __construct(ChannelManager $channelManager) |
||
31 | |||
32 | public function send(NotificationInterface $notification, $recipients) |
||
40 | |||
41 | public function markAsRead(NotificationInterface $notification) |
||
52 | |||
53 | public function markAllAsRead(NotifiableInterface $user) |
||
64 | |||
65 | public function allNotificationCount(NotifiableInterface $user) |
||
69 | |||
70 | public function unreadNotificationCount(NotifiableInterface $user) |
||
74 | |||
75 | public function readNotificationCount(NotifiableInterface $user) |
||
79 | |||
80 | public function notificationCount(NotifiableInterface $user, $status = '') |
||
89 | |||
90 | public function setDatabaseNotificationManager(DatabaseNotificationManager $databaseNotificationManager) |
||
94 | } |
||
95 |
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: