X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fcss-selector%2FXPath%2FXPathExpr.php;h=63e3ac36bf82026aa108a72bad95cc770e1d312b;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=38ca295540071c63989141caf5e9e9a810bcb5b6;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/css-selector/XPath/XPathExpr.php b/vendor/symfony/css-selector/XPath/XPathExpr.php index 38ca29554..63e3ac36b 100644 --- a/vendor/symfony/css-selector/XPath/XPathExpr.php +++ b/vendor/symfony/css-selector/XPath/XPathExpr.php @@ -23,19 +23,8 @@ namespace Symfony\Component\CssSelector\XPath; */ class XPathExpr { - /** - * @var string - */ private $path; - - /** - * @var string - */ private $element; - - /** - * @var string - */ private $condition; /** @@ -70,7 +59,7 @@ class XPathExpr */ public function addCondition($condition) { - $this->condition = $this->condition ? sprintf('%s and (%s)', $this->condition, $condition) : $condition; + $this->condition = $this->condition ? sprintf('(%s) and (%s)', $this->condition, $condition) : $condition; return $this; } @@ -114,7 +103,7 @@ class XPathExpr * * @return $this */ - public function join($combiner, XPathExpr $expr) + public function join($combiner, self $expr) { $path = $this->__toString().$combiner;