Skip to content
Snippets Groups Projects

Draft: Resolve #3414208 "Theme negotiator test"

Open Dave Long requested to merge issue/drupal-3414208:3414208-theme-negotiator-test into 11.x
5 files
+ 38
19
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -34,7 +34,10 @@ public static function decode($raw) {
$yaml = new Parser();
// Make sure we have a single trailing newline. A very simple config like
// 'foo: bar' with no newline will fail to parse otherwise.
return $yaml->parse($raw, SymfonyYaml::PARSE_EXCEPTION_ON_INVALID_TYPE);
return $yaml->parse(
$raw,
SymfonyYaml::PARSE_EXCEPTION_ON_INVALID_TYPE | SymfonyYaml::PARSE_CUSTOM_TAGS
);
}
catch (\Exception $e) {
throw new InvalidDataTypeException($e->getMessage(), $e->getCode(), $e);
Loading