Skip to content

Commit

Permalink
Add method chaining support to NullDriver
Browse files Browse the repository at this point in the history
  • Loading branch information
imacrayon authored Oct 16, 2024
1 parent 1a4b851 commit 956e6e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Drivers/NullDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ public function __call($name, $arguments)
{
if ($this->logCalls) {
Log::debug('Called Spatie Newsletter facade method: '.$name.' with:', $arguments);

return new self;
}

return $this;
}

public function __toString()
{
return '';
}
}

0 comments on commit 956e6e3

Please sign in to comment.