diff vendor/symfony/css-selector/Parser/Shortcut/ElementParser.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
line wrap: on
line diff
--- a/vendor/symfony/css-selector/Parser/Shortcut/ElementParser.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/vendor/symfony/css-selector/Parser/Shortcut/ElementParser.php	Thu Feb 28 13:21:36 2019 +0000
@@ -39,9 +39,9 @@
         //     1 => string 'testns' (length=6)
         //     2 => string 'testel' (length=6)
         if (preg_match('/^(?:([a-z]++)\|)?([\w-]++|\*)$/i', trim($source), $matches)) {
-            return array(new SelectorNode(new ElementNode($matches[1] ?: null, $matches[2])));
+            return [new SelectorNode(new ElementNode($matches[1] ?: null, $matches[2]))];
         }
 
-        return array();
+        return [];
     }
 }