[CssSelector] Add :has() support

by @franckranaivo

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/49388/fe4b0ae0f0981ef5912e910cb97a2378b5f47a8e/cs.diff | patch -p0
diff -ru src/Symfony/Component/CssSelector/XPath/XPathExpr.php src/Symfony/Component/CssSelector/XPath/XPathExpr.php
--- src/Symfony/Component/CssSelector/XPath/XPathExpr.php	2024-03-01 13:05:53.259710099 +0000
+++ src/Symfony/Component/CssSelector/XPath/XPathExpr.php	2024-03-01 13:05:57.045838973 +0000
@@ -82,7 +82,7 @@
      *
      * @return $this
      */
-    public function join(string $combiner, self $expr, string $closingCombiner = null, bool $hasInnerConditions = false): static
+    public function join(string $combiner, self $expr, ?string $closingCombiner = null, bool $hasInnerConditions = false): static
     {
         $path = $this->__toString().$combiner;
 

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

0
Usage of void in test files

0
Use ::class whenever possible

0
Deprecation Messages