diff vendor/symfony/serializer/Encoder/JsonDecode.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/serializer/Encoder/JsonDecode.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/vendor/symfony/serializer/Encoder/JsonDecode.php	Thu Feb 28 13:21:36 2019 +0000
@@ -64,7 +64,7 @@
      *
      * @see http://php.net/json_decode json_decode
      */
-    public function decode($data, $format, array $context = array())
+    public function decode($data, $format, array $context = [])
     {
         $context = $this->resolveContext($context);
 
@@ -96,11 +96,11 @@
      */
     private function resolveContext(array $context)
     {
-        $defaultOptions = array(
+        $defaultOptions = [
             'json_decode_associative' => $this->associative,
             'json_decode_recursion_depth' => $this->recursionDepth,
             'json_decode_options' => 0,
-        );
+        ];
 
         return array_merge($defaultOptions, $context);
     }