Skip to content

Commit

Permalink
Merge pull request #1 from rickkuilman/rickkuilman-add-compatibility-…
Browse files Browse the repository at this point in the history
…for-php7.2

Added compatibility for PHP 7.2.x
  • Loading branch information
ganyicz authored Jul 9, 2021
2 parents 5f05d33 + d530572 commit e15a559
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/HasTemporaryFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ trait HasTemporaryFields
{
protected static function fillFields(NovaRequest $request, $model, $fields)
{
return parent::fillFields($request, $model, $fields->reject(fn ($field) => $field->meta['_temp'] ?? false));
return parent::fillFields($request, $model, $fields->reject(function ($field) {
return $field->meta['_temp'] ?? false;
}));
}
}
}

0 comments on commit e15a559

Please sign in to comment.