Skip to content

Commit

Permalink
Merge pull request #36 from kurorido/master
Browse files Browse the repository at this point in the history
fix for php 7.4
  • Loading branch information
gsouf authored Feb 22, 2020
2 parents 22101e4 + 66d7648 commit bbc93c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Core/Dom/DomXpath.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Url/UrlArchiveTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, '/'));
Expand Down

0 comments on commit bbc93c2

Please sign in to comment.