Change string indexing from {0} to [0] (deprecated in PHP 7.4)
This commit is contained in:
committed by
Frédéric Guillot
parent
6c08225f76
commit
35602c0880
@@ -37,7 +37,7 @@ class ProjectActivityEventFormatter extends BaseFormatter implements FormatterIn
|
||||
*/
|
||||
protected function unserializeEvent($data)
|
||||
{
|
||||
if ($data{0} === 'a') {
|
||||
if ($data[0] === 'a') {
|
||||
return unserialize($data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user