silverstripe / silverstripe-assets

Silverstripe Assets component
BSD 3-Clause "New" or "Revised" License
9 stars 65 forks source link

ENH Fix deprecation issues for PHP 8.1 compatibility #484

Closed emteknetnz closed 2 years ago

emteknetnz commented 2 years ago

Issue https://github.com/silverstripe/silverstripe-framework/issues/10250

Fixes following deprecation warnings during unit tests

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vendor/intervention/image/src/Intervention/Image/Gd/Font.php on line 232

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vendor/intervention/image/src/Intervention/Image/Gd/Font.php on line 243