Skip to content

Commit

Permalink
Fix PHP Deprecation Notice
Browse files Browse the repository at this point in the history
Deprecation Notice: Unparenthesized `a ?: b ? c : d` is deprecated. Use either `(a ?: b) ? c : d` or `a ?: (b ? c : d)`
  • Loading branch information
tortuetorche authored Jan 10, 2020
1 parent 30e3953 commit 7bb7d9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Efficiently/JqueryLaravel/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function form_for($model, array $options = [])
}

if (! array_get($options, 'class')) {
$prefix = $prefix ?: $model->exists ? 'edit' : 'create';
$prefix = $prefix ?: ($model->exists ? 'edit' : 'create');
$options['class'] = dom_class($model, $prefix);
}

Expand Down Expand Up @@ -121,7 +121,7 @@ function former_for($model, array $options = [])
}

if (! array_get($options, 'class')) {
$prefix = $prefix ?: $model->exists ? 'edit' : 'create';
$prefix = $prefix ?: ($model->exists ? 'edit' : 'create');
$options['class'] = dom_class($model, $prefix);
}

Expand Down

0 comments on commit 7bb7d9e

Please sign in to comment.