1 | <?php |
||
9 | class RendererDocument |
||
10 | { |
||
11 | /** |
||
12 | * @var FieldRendererFactory |
||
13 | */ |
||
14 | private $fieldRendererFactory; |
||
15 | |||
16 | /** |
||
17 | * @var ImageManager |
||
18 | */ |
||
19 | private $imageManager; |
||
20 | |||
21 | /** |
||
22 | * @param FieldRendererFactory $fieldRendererFactory |
||
23 | * @param ImageManager $imageManager |
||
24 | */ |
||
25 | 1 | public function __construct( |
|
32 | |||
33 | /** |
||
34 | * @param ParserDocument $parserDocument |
||
35 | * @param callable $fontResolver |
||
|
|||
36 | * @param callable $graphicResolver |
||
37 | * @return Intervention\Image\Image |
||
38 | */ |
||
39 | 1 | public function render( |
|
72 | |||
73 | /** |
||
74 | * @return RendererDocument |
||
75 | */ |
||
76 | public static function factory() |
||
83 | } |
||
84 |
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.