Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\Parser\Shortcut
EmptyStringParser::parse
{@inheritdoc}
Method of the class: EmptyStringParser{}
No Hooks.
Returns
null. Nothing (null).
Usage
$EmptyStringParser = new EmptyStringParser(); $EmptyStringParser->parse( $source ): array;
- $source(string) (required)
- .
EmptyStringParser::parse() EmptyStringParser::parse code WC 10.8.1
public function parse(string $source): array
{
// Matches an empty string
if ('' == $source) {
return [new SelectorNode(new ElementNode(null, '*'))];
}
return [];
}