Fatal error: Array and string offset access syntax with curly braces is no longer supported [duplicate]

I’m having trouble when creating features in the helper so

Fatal error: Array and string offset access syntax with curly braces is no longer supported in C:UsersModern14OneDriveDocumentssapresensigpsappHelperhelpers.php on line 91
image code error
error runing
how do I solve an error like this

I want the code to run so that it can call the desired data based on the array.