1 | <?php |
||
9 | class RendererDocument |
||
10 | { |
||
11 | /** |
||
12 | * @var ParserDocument |
||
13 | */ |
||
14 | private $parserDocument; |
||
15 | |||
16 | /** |
||
17 | * @var FieldRendererFactory |
||
18 | */ |
||
19 | private $fieldRendererFactory; |
||
20 | |||
21 | /** |
||
22 | * @var ImageManager |
||
23 | */ |
||
24 | private $imageManager; |
||
25 | |||
26 | /** |
||
27 | * @param ParserDocument $parserDocument |
||
28 | * @param FieldRendererFactory $fieldRendererFactory |
||
29 | * @param ImageManager $imageManager |
||
30 | */ |
||
31 | public function __construct( |
||
40 | |||
41 | /** |
||
42 | * @param \SimpleXMLElement $xml |
||
43 | * @param callable $fontResolver |
||
|
|||
44 | * @param callable $graphicResolver |
||
45 | * @return Intervention\Image\Image |
||
46 | */ |
||
47 | public function render( |
||
82 | |||
83 | /** |
||
84 | * @return RendererDocument |
||
85 | */ |
||
86 | public static function factory() |
||
94 | } |
||
95 |
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.