-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix YAML related tests #6478
Fix YAML related tests #6478
Conversation
We had duplicated keys and that's no longer valid on symfony/yaml 3.3.
@@ -135,7 +135,6 @@ Doctrine\Tests\Models\CMS\CmsUser: | |||
name: address_id | |||
referencedColumnName: id | |||
cascade: [ persist ] | |||
oneToOne: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is that key removed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's duplicated and the parser now complains
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems good to go to me then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks 😉
@@ -52,7 +52,6 @@ Doctrine\Tests\Models\Company\CompanyPerson: | |||
name: address_id | |||
referencedColumnName: id | |||
cascade: [ persist ] | |||
oneToOne: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above ?
$flags = 0; | ||
|
||
if (defined(Yaml::class . '::PARSE_KEYS_AS_STRINGS')) { | ||
$flags = Yaml::PARSE_KEYS_AS_STRINGS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return Yaml::parse(file_get_contents($file), Yaml::PARSE_KEYS_AS_STRINGS);
$flags = Yaml::PARSE_KEYS_AS_STRINGS; | ||
} | ||
|
||
return Yaml::parse(file_get_contents($file), $flags); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return Yaml::parse(file_get_contents($file), 0);
Since Symfony 3.3 implicit conversion is not enabled by default so we need to pass that flag manually. Related to: symfony/symfony#21774
@Ocramius fixed, thanks |
Green! 🚢 |
Symfony dropped the implicit conversion so we need to do it by ourselves 😉