Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin committed Jun 1, 2021
1 parent 2129e85 commit 84dc313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReviewsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function boot()
{
$this->loadViewsFrom(__DIR__.'/../resources/views', 'rapidez-reviews');

Eventy::addFilter('product.scopes', fn ($scopes) => array_merge($scopes, [WithReviewsScope::class]));
Eventy::addFilter('product.scopes', fn ($scopes) => array_merge($scopes ?: [], [WithReviewsScope::class]));

$this->publishes([
__DIR__.'/../resources/views' => resource_path('views/vendor/rapidez-reviews'),
Expand Down

0 comments on commit 84dc313

Please sign in to comment.