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] Improve casting config nodes to array#51273

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

Open
nicolas-grekas wants to merge1 commit intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromnicolas-grekas:config-cast-to-array

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedAug 4, 2023
edited
Loading

QA
Branch?6.4
Bug fix?no
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

Interestingly, this makes tests fail in Config, seenote in the patch.
Help wanted to understand what's going on and how to fix this.

@maxbeckers
Copy link
Contributor

@nicolas-grekas the scheduler test is already fixed with#51271 /#51274 and not related to your change!

@@ -77,7 +77,7 @@ public function ifTrue(\Closure $closure = null): static
public function ifString(): static
{
$this->ifPart = \is_string(...);
$this->allowedTypes = self::TYPE_STRING;
$this->allowedTypes = self::TYPE_STRING; // XXX why is this used by ConfigBuilderGenerator instead of the prototype?
Copy link
Contributor

Choose a reason for hiding this comment

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

By default it's typeTYPE_ANY what results inmixed. For me it seems that this is a workaround to interpret this as a string after the check.

@nicolas-grekasnicolas-grekas modified the milestones:6.4,7.1Nov 15, 2023
@xabbuhxabbuh modified the milestones:7.1,7.2May 15, 2024
@fabpotfabpot modified the milestones:7.2,7.3Nov 20, 2024
@fabpotfabpot modified the milestones:7.3,7.4May 26, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@maxbeckersmaxbeckersmaxbeckers left review comments

@wouterjwouterjAwaiting requested review from wouterj

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
7.4
Development

Successfully merging this pull request may close these issues.

5 participants
@nicolas-grekas@maxbeckers@fabpot@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp