Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/serializer/Mapping/Loader/YamlFileLoader.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/Mapping/Loader/YamlFileLoader.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/serializer/Mapping/Loader/YamlFileLoader.php Thu Feb 28 13:21:36 2019 +0000 @@ -77,7 +77,7 @@ } if (isset($data['max_depth'])) { - if (!is_int($data['max_depth'])) { + if (!\is_int($data['max_depth'])) { throw new MappingException(sprintf('The "max_depth" value must be an integer in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName())); } @@ -116,7 +116,7 @@ $classes = $this->yamlParser->parseFile($this->file); if (empty($classes)) { - return array(); + return []; } if (!\is_array($classes)) {