| 1 | <?php |
||
| 9 | class FieldRendererStaticGraphic implements FieldRendererInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param ImageManager $imageManager |
||
| 13 | * @param FieldParserInterface $parser |
||
| 14 | * @param callable $fontResolver |
||
|
|
|||
| 15 | * @param callable $graphicResolver |
||
| 16 | * @return Intervention\Image\Image |
||
| 17 | */ |
||
| 18 | 1 | public function render( |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return FieldRendererInterface |
||
| 30 | */ |
||
| 31 | 1 | public static function factory() |
|
| 35 | } |
||
| 36 |
This check looks for
@paramannotations 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.