Fix in convertHexToRGB method. PHP 8.1 does not allow the input string to be null. What causes: <b>Deprecated</b>: substr(): Passing null to parameter #1 ($string) of type string is deprecated in <b>\vendor\sybio\image-workshop\src\Core\ImageWorkshopLib.php</b> on line <b>80</b><br />
Suggested fix
On lines 80, 81 and 82 of the src/Core/ImageWorkshopLib.php file, change the convertHexToRGB method by adding ?? '', as below:
Fix in convertHexToRGB method. PHP 8.1 does not allow the input string to be null. What causes:
<b>Deprecated</b>: substr(): Passing null to parameter #1 ($string) of type string is deprecated in <b>\vendor\sybio\image-workshop\src\Core\ImageWorkshopLib.php</b> on line <b>80</b><br />
Suggested fix
On lines 80, 81 and 82 of the
src/Core/ImageWorkshopLib.php
file, change theconvertHexToRGB
method by adding?? ''
, as below: