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

Commit

Permalink
Merge branch 'hotfix/resolve-naming-conflicts' of git://github.com/mi…
Browse files Browse the repository at this point in the history
…cheh/zf2 into hotfix/2872
  • Loading branch information
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Css2Xpath.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ public static function transform($path)
continue;
}
if (0 === strpos($pathSegment, '[contains(')) {
foreach ($paths as $key => $xpath) {
$paths[$key] .= '//*' . ltrim($pathSegment, '*');
foreach ($paths as $pathKey => $xpath) {
$paths[$pathKey] .= '//*' . ltrim($pathSegment, '*');
$paths[] = $xpath . $pathSegment;
}
} else {
foreach ($paths as $key => $xpath) {
$paths[$key] .= '//' . $pathSegment;
foreach ($paths as $pathKey => $xpath) {
$paths[$pathKey] .= '//' . $pathSegment;
}
}
}
Expand Down

0 comments on commit 3aa5ab0

Please sign in to comment.