1 | <?php |
||
13 | class Notify |
||
14 | { |
||
15 | /** |
||
16 | * Merchant instance. |
||
17 | * |
||
18 | * @var \EntWeChat\Payment\Merchant |
||
19 | */ |
||
20 | protected $merchant; |
||
21 | |||
22 | /** |
||
23 | * Request instance. |
||
24 | * |
||
25 | * @var \Symfony\Component\HttpFoundation\Request |
||
26 | */ |
||
27 | protected $request; |
||
28 | |||
29 | /** |
||
30 | * Payment notify (extract from XML). |
||
31 | * |
||
32 | * @var Collection |
||
33 | */ |
||
34 | protected $notify; |
||
35 | |||
36 | /** |
||
37 | * Constructor. |
||
38 | * |
||
39 | * @param Merchant $merchant |
||
40 | * @param Request $request |
||
41 | */ |
||
42 | public function __construct(Merchant $merchant, Request $request = null) |
||
47 | |||
48 | /** |
||
49 | * Validate the request params. |
||
50 | * |
||
51 | * @return bool |
||
52 | */ |
||
53 | public function isValid() |
||
59 | |||
60 | /** |
||
61 | * Return the notify body from request. |
||
62 | * |
||
63 | * @throws \EntWeChat\Core\Exceptions\FaultException |
||
64 | * |
||
65 | * @return \EntWeChat\Support\Collection |
||
66 | */ |
||
67 | public function getNotify() |
||
86 | } |
||
87 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..