Skip to content

Commit

Permalink
Merge branch 'main' of github.com:spatie/laravel-pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Dec 28, 2023
2 parents bc820d8 + cf12759 commit c2925ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/Facades/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Support\Facades\Facade;
use Spatie\LaravelPdf\FakePdfBuilder;
use Spatie\LaravelPdf\PdfBuilder;
use Spatie\LaravelPdf\PdfFactory;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/PdfFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class PdfFactory
{
protected static PdfBuilder|null $defaultPdfBuilder = null;
protected static ?PdfBuilder $defaultPdfBuilder = null;

public function __construct()
{
Expand All @@ -15,7 +15,7 @@ public function __call($method, $parameters): PdfBuilder
{
$builder = clone static::$defaultPdfBuilder;

return ($builder)->{$method}(...$parameters);
return $builder->{$method}(...$parameters);
}

public function default(): PdfBuilder
Expand Down
2 changes: 1 addition & 1 deletion tests/DefaultPdfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
->toContainText('test');
});

it('will not use properties of the previous pdf when not setting a default', function() {
it('will not use properties of the previous pdf when not setting a default', function () {
$firstPath = getTempPath('first.pdf');
Pdf::html('test')
->orientation(Orientation::Landscape)
Expand Down

0 comments on commit c2925ea

Please sign in to comment.