Skip to content

Commit 2c2beb8

Browse files
authored
bugfix(zend) Deprecated: Array and string offset access syntax with curly braces is deprecated (#1342)
1 parent 79e4452 commit 2c2beb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Zend/Filter/Compress/Zip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function decompress($content)
237237
for ($i = 0; $i < $zip->numFiles; $i++) {
238238
$statIndex = $zip->statIndex($i);
239239
$currName = $statIndex['name'];
240-
if (($currName{0} == '/') ||
240+
if (($currName[0] == '/') ||
241241
(substr($currName, 0, 2) == '..') ||
242242
(substr($currName, 0, 4) == './..')
243243
)

0 commit comments

Comments
 (0)