Add typehints to form block renderers

[MAILPOET-2665]
This commit is contained in:
Rostislav Wolny
2020-02-10 21:49:42 +01:00
committed by Jack Kitterhing
parent 268fe0f2ad
commit f959be13dd
13 changed files with 28 additions and 25 deletions

View File

@@ -17,7 +17,7 @@ class Checkbox {
$this->wp = $wp;
}
public function render($block) {
public function render(array $block): string {
$html = '';
$fieldName = 'data[' . $this->baseRenderer->getFieldName($block) . ']';