This change updates the supported PHP versions, and contains some breaking changes to improve compatibility with newer PHP installs.
Breaking changes to users who are upgrading:
- Support for PHP 7.0. 7.1 and 7.2 has been removed. PHP 7.3 or higher is required from this version.
- Source files now use
declare(strict_types=1)
, which will cause errors for callers which are not using the correct scalar types.
Bug fixes:
- Using the GD library to load images would result in an error on PHP 8. This was due to a change to the GD interface from PHP 8.0.
- The example scripts now refer to
vendor/autoload.php
, so they will work if this repository is checked out and used standalone. - PHPUnit has been updated to version 9.0.