Skip to content

Conversation

@GromNaN
Copy link
Member

@GromNaN GromNaN commented Sep 20, 2025

Q A
Branch? 7.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

The command config:dump-reference fails with the workflow.events_to_dispatch option. The default is null, which is not accepted by count().

Bug introduced by #61718 (5ac6e74).

@carsonbot carsonbot added this to the 7.4 milestone Sep 20, 2025
@GromNaN GromNaN changed the title [Config] Fix Yaml dumper for prototyped array with default null [Config] Fix Yaml dumper for prototyped array with default null Sep 20, 2025
Comment on lines +118 to +127
#[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());
}
Copy link
Member Author

@GromNaN GromNaN Sep 21, 2025

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.

@nicolas-grekas
Copy link
Member

Thank you @GromNaN.

@nicolas-grekas nicolas-grekas merged commit 58f23d2 into symfony:7.4 Sep 22, 2025
10 of 12 checks passed
@GromNaN GromNaN deleted the config-null branch September 22, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants