1 | <?php |
||
5 | class Request implements \ArrayAccess { |
||
6 | protected $get = []; |
||
7 | protected $post = []; |
||
8 | protected $server = []; |
||
9 | protected $cookies = []; |
||
10 | |||
11 | public function __construct( |
||
22 | |||
23 | public function isGet(): bool { |
||
26 | |||
27 | public function isPost(): bool { |
||
30 | |||
31 | public function isPut(): bool { |
||
34 | |||
35 | public function isDelete(): bool { |
||
38 | |||
39 | public function get(string $var, $filter = null) |
||
43 | |||
44 | public function post(string $var, $filter = null) { |
||
47 | |||
48 | public function server(string $var, $filter = null) { |
||
51 | |||
52 | public function getUri(): string { |
||
55 | |||
56 | public function getReferer(): string { |
||
59 | |||
60 | public function getMethod(): string { |
||
63 | |||
64 | public function isSecure(): bool{ |
||
69 | |||
70 | public function isXhr(): bool { |
||
73 | |||
74 | protected function filter(array $input, string $var, $filter = null){ |
||
83 | |||
84 | public function requestGlobals(): array { |
||
91 | |||
92 | public function build_url(){ |
||
99 | |||
100 | public function offsetGet($offset){ |
||
105 | |||
106 | public function offsetSet($offset, $value){ |
||
109 | |||
110 | // \ArrayAccess methods, unused for now |
||
111 | public function offsetExists($offset){} |
||
113 | } |
||
114 | |||
117 |
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.