Skip to content

Commit b193667

Browse files
committed
Make sure bool is returned
1 parent 259dedc commit b193667

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/EventListener/Hook/AddScrollToScriptListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private function match(Template $template): bool
5757
return true;
5858
}
5959

60-
return $template->hasError;
60+
return (bool) $template->hasError;
6161
}
6262

6363
private function generateScrollToError(Template $formTemplate): string

0 commit comments

Comments
 (0)