Skip to content

Commit 3a05d20

Browse files
committed
feat: fix PHP 8.4 deprecations
1 parent 6aee07e commit 3a05d20

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/Knp/Snappy/PdfTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Tests\Knp\Snappy;
44

55
use Knp\Snappy\Pdf;
6-
use PHPUnit\Framework\Error\Error;
76
use PHPUnit\Framework\TestCase;
87
use RecursiveDirectoryIterator;
98
use FilesystemIterator;
@@ -82,7 +81,7 @@ public function testRemovesLocalFilesOnError(): void
8281
$this->assertEquals(1, \count($pdf->temporaryFiles));
8382
$this->expectException(RuntimeException::class);
8483

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

0 commit comments

Comments
 (0)