1 | <?php |
||
15 | class InStoreApi extends Api |
||
16 | { |
||
17 | /** |
||
18 | * @param Authorization $authorization |
||
19 | * @param ClientInterface|null $client |
||
20 | * @param SerializerInterface|null $serializer |
||
21 | * |
||
22 | * @return Service\InStore\Device |
||
23 | */ |
||
24 | public static function device( |
||
36 | |||
37 | /** |
||
38 | * @param Authorization $authorization |
||
39 | * @param Client|null $client |
||
40 | * @param SerializerInterface|null $serializer |
||
41 | * |
||
42 | * @return Service\InStore\PreApproval |
||
43 | */ |
||
44 | public static function preapproval( |
||
56 | |||
57 | /** |
||
58 | * @param Authorization $authorization |
||
59 | * @param Client|null $client |
||
60 | * @param SerializerInterface|null $serializer |
||
61 | * |
||
62 | * @return Service\InStore\Order |
||
63 | */ |
||
64 | public static function order( |
||
76 | |||
77 | /** |
||
78 | * @param Authorization $authorization |
||
79 | * @param Client|null $client |
||
80 | * @param SerializerInterface|null $serializer |
||
81 | * |
||
82 | * @return Service\InStore\Refund |
||
83 | */ |
||
84 | public static function refund( |
||
96 | |||
97 | /** |
||
98 | * @param Authorization $authorization |
||
99 | * @param Client|null $client |
||
100 | * @param SerializerInterface|null $serializer |
||
101 | * |
||
102 | * @return Service\InStore\Customer |
||
103 | */ |
||
104 | public static function customer( |
||
116 | |||
117 | /** |
||
118 | * @param string $endpoint |
||
119 | * @param ClientInterface|null $client |
||
120 | * |
||
121 | * @return Service\InStore\Ping |
||
122 | */ |
||
123 | public static function ping( |
||
133 | } |
||
134 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.