1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Yansongda\Pay\Shortcut\Alipay; |
||
6 | |||
7 | use Yansongda\Artful\Contract\ShortcutInterface; |
||
8 | use Yansongda\Artful\Plugin\ParserPlugin; |
||
9 | use Yansongda\Pay\Plugin\Alipay\V2\AddPayloadSignaturePlugin; |
||
10 | use Yansongda\Pay\Plugin\Alipay\V2\AddRadarPlugin; |
||
11 | use Yansongda\Pay\Plugin\Alipay\V2\FormatPayloadBizContentPlugin; |
||
12 | use Yansongda\Pay\Plugin\Alipay\V2\Pay\H5\PayPlugin; |
||
13 | use Yansongda\Pay\Plugin\Alipay\V2\ResponseHtmlPlugin; |
||
14 | use Yansongda\Pay\Plugin\Alipay\V2\StartPlugin; |
||
15 | |||
16 | class H5Shortcut implements ShortcutInterface |
||
17 | { |
||
18 | public function getPlugins(array $params): array |
||
19 | { |
||
20 | return [ |
||
0 ignored issues
–
show
|
|||
21 | StartPlugin::class, |
||
22 | PayPlugin::class, |
||
23 | FormatPayloadBizContentPlugin::class, |
||
24 | AddPayloadSignaturePlugin::class, |
||
25 | AddRadarPlugin::class, |
||
26 | ResponseHtmlPlugin::class, |
||
27 | ParserPlugin::class, |
||
28 | ]; |
||
29 | } |
||
30 | } |
||
31 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: