-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Config] Fix Yaml dumper for prototyped array with default null
#61800
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
Conversation
null
src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ConfigDumpReferenceCommandTest.php
Show resolved
Hide resolved
src/Symfony/Component/Config/Definition/Dumper/YamlReferenceDumper.php
Outdated
Show resolved
Hide resolved
9ee8462 to
f8dc1d7
Compare
| #[TestWith(['yaml'])] | ||
| #[TestWith(['xml'])] | ||
| public function testDumpFrameworkBundle(string $format) | ||
| { | ||
| $tester = $this->createCommandTester(true); | ||
| $ret = $tester->execute(['name' => 'framework', '--format' => $format]); | ||
|
|
||
| $this->assertSame(0, $ret, 'Returns 0 in case of success'); | ||
| $this->assertStringContainsString('%env(default::SYMFONY_TRUSTED_PROXIES)%', $tester->getDisplay()); | ||
| } |
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.
This integration test increases the coverage of the (Yaml|Xml)ReferenceDumper classes with the configuration of the FrameworkBundle.
It's currently failing with "Unit Tests / Unit Tests (8.4, high-deps)" job because of the bug in the current symfony/config: 7.4@dev. That will be solved by merging this PR.
f8dc1d7 to
54db22e
Compare
|
Thank you @GromNaN. |
The command
config:dump-referencefails with theworkflow.events_to_dispatchoption. The default isnull, which is not accepted bycount().Bug introduced by #61718 (5ac6e74).