Im having the next error while working with SetaPDF, PHP 8 under Laravel Framework.
“Array and string offset access syntax with curly braces is no longer supported”
the error is on the SetaPDF/Core
if ($_lastRc4Key !== $key) {
$k = str_repeat($key, 256 / strlen($key) + 1);
$rc4 = range(0, 255);
$j = 0;
for ($i = 0; $i < 256; $i++) {
$rc4[$i] = $rc4[$j = ($j + ($t = $rc4[$i]) + ord($k{$i})) % 256];
$rc4[$j] = $t;
}
$_lastRc4Key = $key;
$_lastRc4KeyValue = $rc4;
Is someway to make PHP8 work with string offset access, any update on SetaPDF version? Thanks