1 | <?php |
||
28 | class RenderSlotViewHelper extends AbstractViewHelper implements CompilableInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var bool |
||
32 | */ |
||
33 | protected $escapeOutput = false; |
||
34 | |||
35 | /** |
||
36 | * @var FieldViewHelperService |
||
37 | */ |
||
38 | protected $fieldService; |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | public function initializeArguments() |
||
47 | |||
48 | /** |
||
49 | * @inheritdoc |
||
50 | */ |
||
51 | public function render() |
||
59 | |||
60 | /** |
||
61 | * Will render the slot with the given name, only if the slot is found. |
||
62 | * |
||
63 | * @inheritdoc |
||
64 | */ |
||
65 | public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) |
||
76 | |||
77 | /** |
||
78 | * @param FieldViewHelperService $service |
||
79 | */ |
||
80 | public function injectFieldService(FieldViewHelperService $service) |
||
84 | } |
||
85 |
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.