Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 372773e

Browse files
committed
Merge branch 'hotfix/192'
Close #192
2 parents cdad361 + d3d5900 commit 372773e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ All notable changes to this project will be documented in this file, in reverse
2222

2323
### Fixed
2424

25-
- Nothing.
25+
- [#192](https://github.com/zendframework/zend-view/pull/192) changes
26+
curly braces in array and string offset access to square brackets
27+
in order to prevent issues under the upcoming PHP 7.4 release.
2628

2729
## 2.11.2 - 2019-02-19
2830

src/Helper/Navigation/Sitemap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ public function url(AbstractPage $page)
267267
{
268268
$href = $page->getHref();
269269

270-
if (! isset($href{0})) {
270+
if (! isset($href[0])) {
271271
// no href
272272
return '';
273-
} elseif ($href{0} == '/') {
273+
} elseif ($href[0] == '/') {
274274
// href is relative to root; use serverUrl helper
275275
$url = $this->getServerUrl() . $href;
276276
} elseif (preg_match('/^[a-z]+:/im', (string) $href)) {

0 commit comments

Comments
 (0)