Skip to content

Commit

Permalink
feat: fix PHP 8.4 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Nov 21, 2024
1 parent 6aee07e commit 3a05d20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/Knp/Snappy/PdfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Tests\Knp\Snappy;

use Knp\Snappy\Pdf;
use PHPUnit\Framework\Error\Error;
use PHPUnit\Framework\TestCase;
use RecursiveDirectoryIterator;
use FilesystemIterator;
Expand Down Expand Up @@ -82,7 +81,7 @@ public function testRemovesLocalFilesOnError(): void
$this->assertEquals(1, \count($pdf->temporaryFiles));
$this->expectException(RuntimeException::class);

throw new RuntimeException('test error');
throw new RuntimeException('test error.');
// @phpstan-ignore-next-line See https://github.com/phpstan/phpstan/issues/7799
$this->assertFileNotExists(\reset($pdf->temporaryFiles));
}
Expand Down

0 comments on commit 3a05d20

Please sign in to comment.