Skip to content

Commit 68f3b26

Browse files
Merge branch '6.4' into 7.0
* 6.4: [Form] Clean up in tests remove invalid test Fix tests
2 parents a3fb6d3 + 0f19287 commit 68f3b26

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Tests/Extension/FormExtensionDivLayoutTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,12 @@ public function testLabelHtmlIsTrue()
295295
$this->assertMatchesXpath($html, '/label[@for="name"][@class="my&class required"]/b[.="Bolded label"]');
296296
}
297297

298-
protected function renderForm(FormView $view, array $vars = [])
298+
protected function renderForm(FormView $view, array $vars = []): string
299299
{
300300
return $this->renderer->renderBlock($view, 'form', $vars);
301301
}
302302

303-
protected function renderLabel(FormView $view, $label = null, array $vars = [])
303+
protected function renderLabel(FormView $view, $label = null, array $vars = []): string
304304
{
305305
if (null !== $label) {
306306
$vars += ['label' => $label];
@@ -309,42 +309,42 @@ protected function renderLabel(FormView $view, $label = null, array $vars = [])
309309
return $this->renderer->searchAndRenderBlock($view, 'label', $vars);
310310
}
311311

312-
protected function renderHelp(FormView $view)
312+
protected function renderHelp(FormView $view): string
313313
{
314314
return $this->renderer->searchAndRenderBlock($view, 'help');
315315
}
316316

317-
protected function renderErrors(FormView $view)
317+
protected function renderErrors(FormView $view): string
318318
{
319319
return $this->renderer->searchAndRenderBlock($view, 'errors');
320320
}
321321

322-
protected function renderWidget(FormView $view, array $vars = [])
322+
protected function renderWidget(FormView $view, array $vars = []): string
323323
{
324324
return $this->renderer->searchAndRenderBlock($view, 'widget', $vars);
325325
}
326326

327-
protected function renderRow(FormView $view, array $vars = [])
327+
protected function renderRow(FormView $view, array $vars = []): string
328328
{
329329
return $this->renderer->searchAndRenderBlock($view, 'row', $vars);
330330
}
331331

332-
protected function renderRest(FormView $view, array $vars = [])
332+
protected function renderRest(FormView $view, array $vars = []): string
333333
{
334334
return $this->renderer->searchAndRenderBlock($view, 'rest', $vars);
335335
}
336336

337-
protected function renderStart(FormView $view, array $vars = [])
337+
protected function renderStart(FormView $view, array $vars = []): string
338338
{
339339
return $this->renderer->renderBlock($view, 'form_start', $vars);
340340
}
341341

342-
protected function renderEnd(FormView $view, array $vars = [])
342+
protected function renderEnd(FormView $view, array $vars = []): string
343343
{
344344
return $this->renderer->renderBlock($view, 'form_end', $vars);
345345
}
346346

347-
protected function setTheme(FormView $view, array $themes, $useDefaultThemes = true)
347+
protected function setTheme(FormView $view, array $themes, $useDefaultThemes = true): void
348348
{
349349
$this->renderer->setTheme($view, $themes, $useDefaultThemes);
350350
}

0 commit comments

Comments
 (0)