Skip to content

Commit

Permalink
fix PHP 8.0 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindees committed Dec 22, 2022
1 parent 35301b0 commit f1c6169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elements/Traits/CloneFields.php
Expand Up @@ -68,7 +68,7 @@ public function configureToForm(BaseForm $form)
if($this->fields) {
/** @var Field|CloneFields $field */
foreach ($this->fields as $field) {
if (method_exists($field, 'configureToForm')) {
if (!is_null($field) && method_exists($field, 'configureToForm')) {
$field->configureToForm($form);
}
}
Expand Down

0 comments on commit f1c6169

Please sign in to comment.