Skip to content

Commit ad01151

Browse files
committed
Fix implode() Error Exception.
ErrorException : implode(): Passing glue string after array is deprecated. Swap the parameters Reference: https://stackoverflow.com/questions/59541888/errorexception-implode-passing-glue-string-after-array-is-deprecated-swap
1 parent 7bb7d9e commit ad01151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Efficiently/JqueryLaravel/BladeExtensions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function registerContentTags()
6767
$attributes = preg_split('/\s?,\s?/', array_get($result, 2, []));
6868
$tagName = array_get(array_filter($attributes), 0, "'div'");
6969

70-
$options = count($attributes) >= 2 ? implode(array_slice($attributes, 1), ',') : "[]";
70+
$options = count($attributes) >= 2 ? implode(',', array_slice($attributes, 1)) : "[]";
7171
$replacement = "<?php echo '<'.$tagName.app('html')->attributes($options).'>';$3 ?>";
7272
$view = preg_replace($pattern, $replacement, $view, 1);
7373
}
@@ -93,7 +93,7 @@ public function registerContentTags()
9393
$tagName = array_get(array_filter($attributes), 0, "'div'");
9494
$record = array_get($attributes, 1);
9595
$prefix = array_get($attributes, 2, "null");
96-
$options = count($attributes) >= 4 ? implode(array_slice($attributes, 3), ',') : "[]";
96+
$options = count($attributes) >= 4 ? implode(',', array_slice($attributes, 3)) : "[]";
9797

9898
$asOption = preg_split('/, */', array_get($result, 3));
9999

0 commit comments

Comments
 (0)