diff --git a/src/Core/Dom/DomXpath.php b/src/Core/Dom/DomXpath.php index 2e06a5b..34869c6 100644 --- a/src/Core/Dom/DomXpath.php +++ b/src/Core/Dom/DomXpath.php @@ -34,7 +34,7 @@ public function query($expr, BaseDomNode $context = null, $registerNodeNS = null // NullDomNode is an addition to SERPS and must be handled differently if ($context instanceof NullDomNode) { - if ($expr{0} == '/') { + if ($expr[0] == '/') { $context = null; } else { return new EmptyDomNodeList(); diff --git a/src/Core/Url/UrlArchiveTrait.php b/src/Core/Url/UrlArchiveTrait.php index 4d7ef7b..21064ef 100644 --- a/src/Core/Url/UrlArchiveTrait.php +++ b/src/Core/Url/UrlArchiveTrait.php @@ -383,7 +383,7 @@ private function resolveAsAlterableUrl($url, $as) if (empty($delta->getParams())) { $delta->setParams($this->getParams()); } - } elseif ('/' !== $path{0}) { + } elseif ('/' !== $path[0]) { $path = $this->getPath(); if (strpos($path, '/') !== false) { $path = substr($path, 0, strrpos($path, '/'));