codeshell/fpdm

PHP 7.4 Deprecated function : Array and string offset access syntax with curly braces is deprecated

nbao opened this issue · 1 comments

nbao commented

I got some warning for PHP 7.4 Please fix in filters/FilterASCIIHex.php line 57
$hex .= sprintf("%02x", ord($str{$i}));
to
$hex .= sprintf("%02x", ord($str[$i]));

Yeah this is easy

search: {$i}
replace: [$i]

This issue is in multiple files by the way. Easy fix