1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace BEAR\Resource; |
||
6 | |||
7 | /** |
||
8 | * @property $this $get |
||
9 | * @property $this $post |
||
10 | * @property $this $put |
||
11 | * @property $this $patch |
||
12 | * @property $this $delete |
||
13 | * @property $this $head |
||
14 | * @property $this $options |
||
15 | * @psalm-import-type Query from Types |
||
16 | */ |
||
17 | interface ResourceInterface |
||
18 | { |
||
19 | /** |
||
20 | * Return new resource object instance |
||
21 | * |
||
22 | * @param AbstractUri|string $uri |
||
23 | */ |
||
24 | public function newInstance($uri): ResourceObject; |
||
25 | |||
26 | /** |
||
27 | * Set resource object |
||
28 | */ |
||
29 | public function object(ResourceObject $ro): RequestInterface; |
||
30 | |||
31 | /** |
||
32 | * Set URI |
||
33 | * |
||
34 | * @param AbstractUri|string $uri |
||
35 | */ |
||
36 | public function uri($uri): RequestInterface; |
||
37 | |||
38 | /** |
||
39 | * Hyper reference (Hypertext As The Engine Of Application State) |
||
40 | * |
||
41 | * @param Query $query |
||
0 ignored issues
–
show
|
|||
42 | */ |
||
43 | public function href(string $rel, array $query = []): ResourceObject; |
||
44 | |||
45 | /** |
||
46 | * Invoke GET request |
||
47 | * |
||
48 | * @param Query $query |
||
49 | */ |
||
50 | public function get(string $uri, array $query = []): ResourceObject; |
||
51 | |||
52 | /** |
||
53 | * Invoke POST request |
||
54 | * |
||
55 | * @param Query $query |
||
56 | */ |
||
57 | public function post(string $uri, array $query = []): ResourceObject; |
||
58 | |||
59 | /** |
||
60 | * Invoke PUT request |
||
61 | * |
||
62 | * @param Query $query |
||
63 | */ |
||
64 | public function put(string $uri, array $query = []): ResourceObject; |
||
65 | |||
66 | /** |
||
67 | * Invoke PATCH request |
||
68 | * |
||
69 | * @param Query $query |
||
70 | */ |
||
71 | public function patch(string $uri, array $query = []): ResourceObject; |
||
72 | |||
73 | /** |
||
74 | * Invoke DELETE request |
||
75 | * |
||
76 | * @param Query $query |
||
77 | */ |
||
78 | public function delete(string $uri, array $query = []): ResourceObject; |
||
79 | |||
80 | /** |
||
81 | * Invoke HEAD request |
||
82 | * |
||
83 | * @param Query $query |
||
84 | */ |
||
85 | public function head(string $uri, array $query = []): ResourceObject; |
||
86 | |||
87 | /** |
||
88 | * Invoke OPTIONS request |
||
89 | * |
||
90 | * @param Query $query |
||
91 | */ |
||
92 | public function options(string $uri, array $query = []): ResourceObject; |
||
93 | } |
||
94 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths