K.

Results 3 comments of K.

There's no direct support for this in the Matcher but it can be easily done. There's multiple ways to do it, one of them is to use the `mapRaw` method...

Well, I'm not too keen on rewriting XPaths with regexps. But as of current master it's easy to plug in custom preprocessor. ``` php $context = new MatcherContext(null, [], 'Symfony\Component\CssSelector\CssSelector::toXpath');...

This is expected behavior. Numeric keys are treated differently, they cause their value to be merged one level higher. ``` Matcher::multi(path, [ 'a' => pathToA, 'b' => pathToB, 'c' =>...