Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/serializer/Encoder/YamlEncoder.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/YamlEncoder.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/serializer/Encoder/YamlEncoder.php Thu Feb 28 13:21:36 2019 +0000 @@ -26,9 +26,9 @@ private $dumper; private $parser; - private $defaultContext = array('yaml_inline' => 0, 'yaml_indent' => 0, 'yaml_flags' => 0); + private $defaultContext = ['yaml_inline' => 0, 'yaml_indent' => 0, 'yaml_flags' => 0]; - public function __construct(Dumper $dumper = null, Parser $parser = null, array $defaultContext = array()) + public function __construct(Dumper $dumper = null, Parser $parser = null, array $defaultContext = []) { if (!class_exists(Dumper::class)) { throw new RuntimeException('The YamlEncoder class requires the "Yaml" component. Install "symfony/yaml" to use it.'); @@ -42,7 +42,7 @@ /** * {@inheritdoc} */ - public function encode($data, $format, array $context = array()) + public function encode($data, $format, array $context = []) { $context = array_merge($this->defaultContext, $context); @@ -60,7 +60,7 @@ /** * {@inheritdoc} */ - public function decode($data, $format, array $context = array()) + public function decode($data, $format, array $context = []) { $context = array_merge($this->defaultContext, $context);