1 | <?php |
||
26 | class StoreService |
||
27 | { |
||
28 | /** |
||
29 | * @var MailChimp |
||
30 | */ |
||
31 | private $mailChimp; |
||
32 | |||
33 | /** |
||
34 | * Initializes Store |
||
35 | * |
||
36 | * @param MailChimp $mailChimp |
||
37 | */ |
||
38 | public function __construct(MailChimp $mailChimp) |
||
42 | |||
43 | /** |
||
44 | * Create a new Store in MailChimp |
||
45 | * |
||
46 | * @var Store $store |
||
47 | */ |
||
48 | public function create($store) |
||
63 | } |
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: