laravel-6 support
This commit is contained in:
@@ -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 [];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user