tecnickcom / TCPDF

Official clone of PHP library to generate PDF documents and barcodes
https://tcpdf.org
Other
4.18k stars 1.51k forks source link

fix: php 8.1 notices #481

Closed joostdebruijn closed 2 years ago

joostdebruijn commented 2 years ago

This PR fixes some PHP 8.1 deprecations. I assume there are more occurences where the same deprecations are triggered, but those are the ones I encountered.

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

laoneo commented 2 years ago

Please merge this one and make a release to be able to run tcpdf on PHP 8.1.

williamdes commented 2 years ago

Please merge this one and make a release to be able to run tcpdf on PHP 8.1.

By the way tcpdf runs correctly (kind of) with PHP 8.1 If you add some new examples in the examples directory it will help catching the missing parts :) And this is very important, add as much examples as possible to cover the existing code

laoneo commented 2 years ago

It does, but throws some deprecate notices which are fixed with this pr.