Skip to content

Commit

Permalink
Bugfix syntax breaking comma
Browse files Browse the repository at this point in the history
  • Loading branch information
konradkalemba committed Mar 22, 2020
1 parent 1baed05 commit 057f062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BladeComponentsScopedSlotsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function boot()
// Connect the arguments to form a correct function declaration
if ($functionArguments) $functionArguments = "function {$functionArguments}";

$functionUses = explode(',', trim($functionUses, '()'));
$functionUses = array_filter(explode(',', trim($functionUses, '()')), 'strlen');

// Add `$__env` to allow usage of other Blade directives inside the scoped slot
array_push($functionUses, '$__env');
Expand Down

0 comments on commit 057f062

Please sign in to comment.