Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
TRPB committed Nov 22, 2018
2 parents 94761da + 3feb6b7 commit db01b7f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
],
"require": {
"php": ">=5.6.0"
"php": ">=7.0.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7.20"
Expand Down
2 changes: 1 addition & 1 deletion src/Formatter/Locale/deDE.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"thousands_separator": ".",
"decimal_separator": ",",
"currency": "",
Expand Down
4 changes: 3 additions & 1 deletion src/Parser/CssToXpath.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ private function removeSpacesFromDirectDecend($css) {


public function getDepth($css) {
return count($this->split($css));
$parts = $css->splitOnToken(Tokenizer::COLON);
return count($this->split($parts[0]));
}


public function getPseudo($css) {
$parts = $css->splitOnToken(Tokenizer::COLON);
array_shift($parts);
Expand Down

0 comments on commit db01b7f

Please sign in to comment.