Skip to content

Commit 7bb7d9e

Browse files
authored
Fix PHP Deprecation Notice
Deprecation Notice: Unparenthesized `a ?: b ? c : d` is deprecated. Use either `(a ?: b) ? c : d` or `a ?: (b ? c : d)`
1 parent 30e3953 commit 7bb7d9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Efficiently/JqueryLaravel/helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function form_for($model, array $options = [])
6060
}
6161

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

@@ -121,7 +121,7 @@ function former_for($model, array $options = [])
121121
}
122122

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

0 commit comments

Comments
 (0)