1 | <?php |
||
22 | class Parser implements ParserInterface |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * |
||
27 | * @var ElementFinder|null |
||
28 | */ |
||
29 | protected $lastPage; |
||
30 | |||
31 | /** |
||
32 | * @var ClientInterface |
||
33 | */ |
||
34 | protected $client; |
||
35 | |||
36 | /** |
||
37 | * @var ElementFinderFactoryInterface |
||
38 | */ |
||
39 | protected $elementFinderFactory; |
||
40 | |||
41 | /** |
||
42 | * @var null|ResponseInterface |
||
43 | */ |
||
44 | protected $lastResponse; |
||
45 | |||
46 | |||
47 | 10 | public function __construct(ClientInterface $client = null, ElementFinderFactoryInterface $elementFinderFactory = null) |
|
58 | |||
59 | 10 | ||
60 | /** |
||
61 | 10 | * @throws InvalidArgumentException |
|
62 | 10 | */ |
|
63 | public function get(string $url, array $options = []): ElementFinderInterface |
||
73 | 5 | ||
74 | 1 | public function send(RequestInterface $request, array $options = []): ElementFinderInterface |
|
101 | |||
102 | /** |
||
103 | * @throws InvalidArgumentException |
||
104 | */ |
||
105 | 2 | public function post(string $url, array $options = []): ElementFinderInterface |
|
115 | 5 | ||
116 | 5 | public function getLastPage(): ?ElementFinderInterface |
|
120 | |||
121 | public function getLastResponse(): ?ResponseInterface |
||
125 | |||
126 | public function getClient(): ClientInterface |
||
130 | |||
131 | 4 | public function getElementFinderFactory(): ElementFinderFactoryInterface |
|
135 | |||
136 | } |
||
137 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..