Skip to content

Commit 43b17bf

Browse files
committed
#187 - fixed array to string conversion
1 parent e1f618d commit 43b17bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Parser/CssToXpath.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static function processAttr($attr, $element, $hash) {
5050

5151
$parser = new \Transphporm\Parser\Value($functionSet, true);
5252
$return = $parser->parseTokens($attr, $attributes);
53-
return $return[0] === '' ? false : $return[0];
53+
return is_array($return[0]) || $return[0] === '' ? false : $return[0];
5454
}
5555

5656
public function cleanup() {
@@ -97,7 +97,7 @@ private function removeSpacesFromDirectDecend($css) {
9797
$tokens->add($split[$i]->trim());
9898
if (isset($split[$i+1])) $tokens->add(['type' => Tokenizer::GREATER_THAN]);
9999
}
100-
100+
101101
return $tokens;
102102
}
103103

0 commit comments

Comments
 (0)