1 | <?php |
||
9 | class SelectorConverter |
||
10 | { |
||
11 | /** |
||
12 | * @var string[] |
||
13 | * |
||
14 | * @phpstan-var array<string,string> |
||
15 | */ |
||
16 | protected static $compiled = []; |
||
17 | |||
18 | /** |
||
19 | * @param string $selector |
||
20 | * @param bool $ignoreCssSelectorErrors |
||
21 | * <p> |
||
22 | * Ignore css selector errors and use the $selector as it is on error, |
||
23 | * so that you can also use xPath selectors. |
||
24 | * </p> |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | 154 | public static function toXPath(string $selector, bool $ignoreCssSelectorErrors = false) |
|
68 | } |
||
69 |