Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Config] Allow to always use config classes#51544

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
alexndlm wants to merge2 commits intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromalexndlm:feature/config-allow-to-always-use-config-classes

Conversation

alexndlm
Copy link
Contributor

QA
Branch?6.3
Bug fix?yes
New feature?no
Deprecations?no
LicenseMIT

When the config node doesn't have normalization, using the config object is impossible.

When the config node has some array normalization (likehttp_codes in\Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration::addHttpClientRetrySection), it is not possible to use the config object.

This PR relates to changes introduced in:

Снимок экрана 2023-09-01 в 22 22 28

@nicolas-grekas
Copy link
Member

Thanks for working on this, it's related to the limitation I found in#51273
Can you please rebase+target 6.4? That's an improvement, not a bugfix to me.

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The changes on the Config components are BC breaks. Can we find a way that doesn't break BC?

@@ -374,7 +374,7 @@ protected function createNode(): NodeInterface

if ($this->default) {
if (!\is_array($this->defaultValue)) {
throw new \InvalidArgumentException(sprintf('%s: the default value of an array node has to be an array.', $node->getPath()));
throw new \InvalidArgumentException(sprintf('"%s": the default value of an array node has to be an array.', $node->getPath()));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

should be reverted, that's a false-positive from fabbot I suppose

protected $node;

public $allowedTypes;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

removing consts and public properties is a BC break, we need to figure out a way that doesn't break BC

@alexndlmalexndlmforce-pushed thefeature/config-allow-to-always-use-config-classes branch fromf4bb242 to72e1fd0CompareNovember 11, 2023 14:08
@alexndlmalexndlm marked this pull request as draftNovember 11, 2023 14:13
@alexndlmalexndlm changed the base branch from6.3 to6.4November 11, 2023 14:13
@nicolas-grekasnicolas-grekas modified the milestones:6.3,6.4Feb 1, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@lyrixxlyrixxAwaiting requested review from lyrixx

@ycerutoycerutoAwaiting requested review from yceruto

@kbondkbondAwaiting requested review from kbond

@chalasrchalasrAwaiting requested review from chalasr

@dunglasdunglasAwaiting requested review from dunglas

@OskarStarkOskarStarkAwaiting requested review from OskarStark

@jderussejderusseAwaiting requested review from jderusse

@xabbuhxabbuhAwaiting requested review from xabbuh

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

4 participants
@alexndlm@nicolas-grekas@carsonbot@jderusse

[8]ページ先頭

©2009-2025 Movatter.jp