hanneskod / libmergepdf

PHP library for merging multiple PDFs
391 stars 77 forks source link

Support php 7.4 #42

Closed hanneskod closed 4 years ago

hanneskod commented 4 years ago

PHPUnit 7.5.18 by Sebastian Bergmann and contributors.

..EEEE...................                                         25 / 25 (100%)

Time: 158 ms, Memory: 72.00 MB

There were 4 errors:

1) iio\libmergepdf\Driver\Fpdi2DriverTest::testExceptionOnFailure
Array and string offset access syntax with curly braces is deprecated

/home/hannes/repos/libmergepdf/vendor/tecnickcom/tcpdf/tcpdf.php:16900
/home/hannes/repos/libmergepdf/vendor/setasign/fpdi/src/Tcpdf/Fpdi.php:25
/home/hannes/repos/libmergepdf/tests/Driver/Fpdi2DriverTest.php:23

2) iio\libmergepdf\Driver\Fpdi2DriverTest::testMerge
Use of undefined constant K_CELL_HEIGHT_RATIO - assumed 'K_CELL_HEIGHT_RATIO' (this will throw an Error in a future version of PHP)

/home/hannes/repos/libmergepdf/tests/Driver/Fpdi2DriverTest.php:40

3) iio\libmergepdf\Driver\TcpdiDriverTest::testExceptionOnFailure
Array and string offset access syntax with curly braces is deprecated

/home/hannes/repos/libmergepdf/vendor/rafikhaceb/tcpdi/tcpdi.php:248
/home/hannes/repos/libmergepdf/tests/Driver/TcpdiDriverTest.php:15

4) iio\libmergepdf\Driver\TcpdiDriverTest::testMerge
Array and string offset access syntax with curly braces is deprecated

/home/hannes/repos/libmergepdf/vendor/rafikhaceb/tcpdi/tcpdi.php:248
/home/hannes/repos/libmergepdf/tests/Driver/TcpdiDriverTest.php:30

ERRORS!
Tests: 25, Assertions: 22, Errors: 4.```
hanneskod commented 4 years ago

Fixed in 06c905ae2aaf93663783fc941d5146671231cbda