Skip to content

Commit

Permalink
bugfix callback
Browse files Browse the repository at this point in the history
  • Loading branch information
dietercoopman committed Nov 25, 2021
1 parent f0eb1fe commit 833881c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShowsqlServiceProvider.php
Expand Up @@ -14,7 +14,7 @@ public function configurePackage(Package $package): void
->name('showsql')
->hasConfigFile();

Builder::macro('showSql', function ($callback) {
Builder::macro('showSql', function ($callback = null) {
$showSql = new ShowSql($this, $callback);

return $showSql->getBuilder();
Expand Down

0 comments on commit 833881c

Please sign in to comment.