Merge pull request #153 from mikemand/patch-1
Use array_get's third parameter for default value.
This commit is contained in:
commit
3a312d39ff
1 file changed
+1
-1
@@ -81,7 +81,7 @@ trait Componentable
|
||||
$default = null;
|
||||
}
|
||||
|
||||
$data[$variable] = array_get($arguments, $i) ?: $default;
|
||||
$data[$variable] = array_get($arguments, $i, $default);
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user