diff vendor/symfony/routing/CompiledRoute.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
line wrap: on
line diff
--- a/vendor/symfony/routing/CompiledRoute.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/vendor/symfony/routing/CompiledRoute.php	Thu Feb 28 13:21:36 2019 +0000
@@ -37,7 +37,7 @@
      * @param array       $hostVariables An array of host variables
      * @param array       $variables     An array of variables (variables defined in the path and in the host patterns)
      */
-    public function __construct($staticPrefix, $regex, array $tokens, array $pathVariables, $hostRegex = null, array $hostTokens = array(), array $hostVariables = array(), array $variables = array())
+    public function __construct($staticPrefix, $regex, array $tokens, array $pathVariables, $hostRegex = null, array $hostTokens = [], array $hostVariables = [], array $variables = [])
     {
         $this->staticPrefix = (string) $staticPrefix;
         $this->regex = $regex;
@@ -54,7 +54,7 @@
      */
     public function serialize()
     {
-        return serialize(array(
+        return serialize([
             'vars' => $this->variables,
             'path_prefix' => $this->staticPrefix,
             'path_regex' => $this->regex,
@@ -63,7 +63,7 @@
             'host_regex' => $this->hostRegex,
             'host_tokens' => $this->hostTokens,
             'host_vars' => $this->hostVariables,
-        ));
+        ]);
     }
 
     /**
@@ -72,7 +72,7 @@
     public function unserialize($serialized)
     {
         if (\PHP_VERSION_ID >= 70000) {
-            $data = unserialize($serialized, array('allowed_classes' => false));
+            $data = unserialize($serialized, ['allowed_classes' => false]);
         } else {
             $data = unserialize($serialized);
         }