laravel-6 support

This commit is contained in:
RafficMohammed
2023-01-08 01:17:22 +05:30
parent 1a5c16ae4b
commit 774eed8b0e
4962 changed files with 279380 additions and 297961 deletions

View File

@@ -34,13 +34,13 @@ class EmptyStringParser implements ParserInterface
/**
* {@inheritdoc}
*/
public function parse($source)
public function parse(string $source): array
{
// Matches an empty string
if ($source == '') {
return array(new SelectorNode(new ElementNode(null, '*')));
if ('' == $source) {
return [new SelectorNode(new ElementNode(null, '*'))];
}
return array();
return [];
}
}