1 | <?php |
||
16 | class ShopEmailPreviewTask extends BuildTask |
||
17 | { |
||
18 | protected $title = "Preview Shop Emails"; |
||
19 | |||
20 | protected $description = 'Previews shop emails'; |
||
21 | |||
22 | protected $previewableEmails = array( |
||
23 | 'Confirmation', |
||
24 | 'Receipt', |
||
25 | 'AdminNotification' |
||
26 | ); |
||
27 | |||
28 | |||
29 | /** |
||
30 | * @param SS_HTTPRequest $request |
||
31 | */ |
||
32 | public function run($request) |
||
59 | } |
||
60 |
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: