Skip to content

Commit

Permalink
Fix variable type mismatch
Browse files Browse the repository at this point in the history
```
Error thrown with message "Call to a member function each() on bool"

Stacktrace:
#19 Error in /opt/project/web/app/themes/--/vendor/log1x/sage-svg/src/SageSvgServiceProvider.php:84
```
  • Loading branch information
LeoColomb authored Dec 5, 2020
1 parent 0c86f8a commit e241265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SageSvgServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function customDirectives()
return;
}

if ($directives = collect($this->app->config->get('svg.directives'))->isEmpty()) {
if (($directives = collect($this->app->config->get('svg.directives')))->isEmpty()) {
return;
}

Expand Down

0 comments on commit e241265

Please sign in to comment.