Fix phpstan errors from new version

[MAILPOET-3725]
This commit is contained in:
Jan Lysý
2021-08-05 12:40:18 +02:00
committed by Veljko V
parent 3ede4366b6
commit a9621875bd
3 changed files with 8 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ class Select {
}
$html .= '<option value="" disabled selected hidden>' . $label . '</option>';
} else {
if (empty($block['params']['required']) || !$block['params']['required']) {
if (empty($block['params']['required'])) {
$html .= '<option value="">-</option>';
}
}