-
Notifications
You must be signed in to change notification settings - Fork 111
PR #826 kicked 'isset' check #830
Copy link
Copy link
Closed
Labels
Description
In Line 229 of src/FormField/DropDown.php:
if (!$this->field->required && !$this->isMultiple) {
Before #826, there was an isset() check if $this->field was set:
if (isset($this->field) && $this->field->required) {
$this->isValueRequired = true;
}
Now, if $this->field isnt set, it leads to a PHP notice.
Possible fix:
if (!($this->field->required ?? false) && !$this->isMultiple) {
Reactions are currently unavailable