diff vendor/symfony/css-selector/Parser/Shortcut/HashParser.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/HashParser.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/vendor/symfony/css-selector/Parser/Shortcut/HashParser.php	Thu Feb 28 13:21:36 2019 +0000
@@ -41,11 +41,11 @@
         //     2 => string 'input' (length=5)
         //     3 => string 'ab6bd_field' (length=11)
         if (preg_match('/^(?:([a-z]++)\|)?+([\w-]++|\*)?+#([\w-]++)$/i', trim($source), $matches)) {
-            return array(
+            return [
                 new SelectorNode(new HashNode(new ElementNode($matches[1] ?: null, $matches[2] ?: null), $matches[3])),
-            );
+            ];
         }
 
-        return array();
+        return [];
     }
 }