Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 22.22% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class GuzzleStrategy implements StrategyInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var Client |
||
17 | */ |
||
18 | private Client $client; |
||
19 | |||
20 | /** |
||
21 | * @param Options|null $options |
||
22 | */ |
||
23 | 1 | public function __construct(private readonly null|Options $options = null) |
|
24 | { |
||
25 | 1 | $this->client = new Client(); |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param string $url |
||
30 | * @return Response |
||
31 | * @throws GuzzleException |
||
32 | */ |
||
33 | public function sendRequest(string $url): Response |
||
43 | ); |
||
44 | } |
||
46 |
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.