These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the overtrue/wechat. |
||
5 | * |
||
6 | * (c) overtrue <[email protected]> |
||
7 | * |
||
8 | * This source file is subject to the MIT license that is bundled |
||
9 | * with this source code in the file LICENSE. |
||
10 | */ |
||
11 | |||
12 | namespace EasyWeChat\Payment\Notify; |
||
13 | |||
14 | use EasyWeChat\Kernel\Support\XML; |
||
15 | use Symfony\Component\HttpFoundation\Response; |
||
16 | |||
17 | class Refunded extends Handler |
||
18 | { |
||
19 | protected $check = false; |
||
20 | |||
21 | /** |
||
22 | * @param callable $callback |
||
23 | * |
||
24 | * @return \Symfony\Component\HttpFoundation\Response |
||
25 | */ |
||
26 | public function handle(callable $callback): Response |
||
27 | { |
||
28 | $this->strict( |
||
29 | $callback->bindTo($this)->__invoke($this->getMessage(), [$this, 'fail']) |
||
0 ignored issues
–
show
|
|||
30 | ); |
||
31 | |||
32 | return $this->toResponse(); |
||
33 | } |
||
34 | |||
35 | public function decryptedInfo() |
||
36 | { |
||
37 | return XML::parse($this->decryptMessage('req_info')); |
||
38 | } |
||
39 | } |
||
40 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.