Skip to content

Commit 1a44508

Browse files
authored
bugfix(zend) Deprecated: Array and string offset access syntax with curly braces is deprecated (#1348)
1 parent 922fa0f commit 1a44508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Zend/Tool/Project/Context/Zf/ApplicationConfigFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function addStringItem($key, $value, $section = 'production', $quoteValue
139139
$newLines[] = $contentLine;
140140
if ($insideSection) {
141141
// if its blank, or a section heading
142-
if (isset($contentLines[$contentLineIndex + 1]{0}) && $contentLines[$contentLineIndex + 1]{0} == '[') {
142+
if (isset($contentLines[$contentLineIndex + 1][0]) && $contentLines[$contentLineIndex + 1][0] == '[') {
143143
$newLines[] = $key . ' = ' . $value;
144144
$insideSection = null;
145145
} else if (!isset($contentLines[$contentLineIndex + 1])){

0 commit comments

Comments
 (0)