1 | <?php |
||
9 | abstract class AbstractRequestBuilder implements RequestBuilderInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var RequestFactory |
||
13 | */ |
||
14 | protected $requestFactory; |
||
15 | |||
16 | /** |
||
17 | * @var HttpClient |
||
18 | */ |
||
19 | protected $client; |
||
20 | |||
21 | /** |
||
22 | * @param RequestFactory $requestFactory |
||
23 | * @param HttpClient $client |
||
|
|||
24 | */ |
||
25 | public function __construct(RequestFactory $requestFactory, HttpClient $client = null) |
||
30 | |||
31 | public function getRequestFactory() |
||
35 | |||
36 | public function getClient() |
||
40 | } |
||
41 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.