Skip to content

Commit 293efab

Browse files
committed
TCPDF doesn't support PHP 8.0, skip test
1 parent ea917c2 commit 293efab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/PhpWord/Writer/PDF/TCPDFTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ public function testConstruct()
3939
return;
4040
}
4141

42+
// TCPDF version 6.3.5 doesn't support PHP 8.0, fixed via https://github.com/tecnickcom/TCPDF/pull/293,
43+
// pending new release.
44+
if (version_compare(PHP_VERSION, '8.0.0', '>=')) {
45+
return;
46+
}
47+
4248
$file = __DIR__ . '/../../_files/tcpdf.pdf';
4349

4450
$phpWord = new PhpWord();

0 commit comments

Comments
 (0)