Compatibility with old PHP versions

This commit is contained in:
troosan 2021-02-08 00:58:00 +01:00 committed by GitHub
parent 6baf287a5f
commit 486321bb02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ class Html
$inputType = $attributes->getNamedItem('type')->value;
switch ($inputType) {
case 'checkbox':
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ?? false;
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ? true ? false;
$textrun = $element->addTextRun();
$textrun->addFormField('checkbox')->setValue($checked);
break;