Skip to content

Commit 9e01230

Browse files
authored
Resolve Symfony 4 deprecation notice
Passing "true" here is going away in Symfony 4.x, so this flag is recommended instead.
1 parent ae6e713 commit 9e01230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dflydev/DotAccessConfiguration/YamlConfigurationBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function internalBuild(ConfigurationInterface $configuration)
4040
{
4141
if (null !== $this->input) {
4242
try{
43-
$yml = Yaml::parse($this->input, true);
43+
$yml = Yaml::parse($this->input, Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE);
4444
} catch (\Exception $e) {
4545
throw new InvalidArgumentException($e->getMessage(), 0, $e);
4646
}

0 commit comments

Comments
 (0)