1 | <?php |
||
7 | class MediaSubscriptionSender extends SubscriptionSender |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * Send the diff for some media change |
||
12 | * |
||
13 | * @fixme this should embed thumbnails of images in HTML version |
||
14 | * |
||
15 | * @param string $subscriber_mail The target mail address |
||
16 | * @param string $template Mail template ('uploadmail', ...) |
||
17 | * @param string $id Media file for which the notification is |
||
18 | * @param int|bool $rev Old revision if any |
||
19 | */ |
||
20 | public function sendMediaDiff($subscriber_mail, $template, $id, $rev = false) |
||
46 | } |
||
47 |
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: