1 | <?php |
||
2 | |||
3 | namespace Imanghafoori\HeyMan\Reactions; |
||
4 | |||
5 | /** |
||
6 | * Class Responder. |
||
7 | * |
||
8 | * @method Then make(string $content = '', int $status = 200, array $headers = []) |
||
9 | * @method Then view(string $view, array $data = [], int $status = 200, array $headers = []) |
||
10 | * @method Then json($data = [], $status = 200, array $headers = [], $options = 0) |
||
11 | * @method Then jsonp($callback, $data = [], $status = 200, array $headers = [], $options = 0) |
||
12 | * @method Then stream($callback, $status = 200, array $headers = []) |
||
13 | * @method Then streamDownload($callback, $name = null, array $headers = [], $disposition = 'attachment') |
||
14 | * @method Then download($file, $name = null, array $headers = [], $disposition = 'attachment') |
||
15 | */ |
||
16 | final class Responder |
||
17 | { |
||
18 | private $action; |
||
19 | |||
20 | 5 | public function __construct($action) |
|
21 | { |
||
22 | 5 | $this->action = $action; |
|
23 | 5 | } |
|
24 | |||
25 | 5 | public function __call($method, $parameters) |
|
26 | { |
||
27 | 5 | resolve('heyman.chain')->push('data', [$method, $parameters]); |
|
0 ignored issues
–
show
|
|||
28 | |||
29 | 5 | return new Then($this->action); |
|
30 | } |
||
31 | } |
||
32 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.