1 | <?php |
||
29 | class RenderViewHelper extends AbstractViewHelper implements CompilableInterface |
||
30 | { |
||
31 | /** |
||
32 | * @var bool |
||
33 | */ |
||
34 | protected $escapeOutput = false; |
||
35 | |||
36 | /** |
||
37 | * @var FieldViewHelperService |
||
38 | */ |
||
39 | protected $fieldService; |
||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | public function initializeArguments() |
||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | public function render() |
||
60 | |||
61 | /** |
||
62 | * Will render the slot with the given name, only if the slot is found. |
||
63 | * |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) |
||
77 | |||
78 | /** |
||
79 | * @param FieldViewHelperService $service |
||
80 | */ |
||
81 | public function injectFieldService(FieldViewHelperService $service) |
||
85 | } |
||
86 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.