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] Add getter of definition nodes properties#62122

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
GromNaN wants to merge5 commits intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromGromNaN:config-getter

Conversation

@GromNaN
Copy link
Member

@GromNaNGromNaN commentedOct 20, 2025
edited
Loading

QA
Branch?7.4
Bug fix?no
New feature?yes
Deprecations?no
Issues-
LicenseMIT

Inb68f0e6, the methodsNumericNode::getMin() etNumericNode::getMax() have been added so that they can be used to generate the array shape.

Other getters would be necessary for theJsonSchema generator (#59620)

  • BaseNode::getEquivalentValues() indicate ifnull,true,false are allowed values
  • BooleanNode::isNullable() indicates ifnull is an allowed value
  • VariableNode::getAllowEmptyValue() indicates if an empty string is allowed

@carsonbotcarsonbot added this to the7.4 milestoneOct 20, 2025
@GromNaNGromNaNforce-pushed theconfig-getter branch 2 times, most recently fromb34371c to4a2271eCompareOctober 21, 2025 01:11
$nullableBooleanNode->setDefaultValue(null);

yield [$nullableBooleanNode,'bool|null'];
yield [newBooleanNode('node', nullable:true),'bool|null'];
Copy link
Member

Choose a reason for hiding this comment

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

please don't use named parameters. They are not covered by BC. Using the public API in tests can help detect some unintended BC breaks (if we have to edit those tests for unrelated reasons)

Choose a reason for hiding this comment

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

If you update this occurrence, could you also please fix the other ones in the provider?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Updated, please note the inconsistency in the constructor signature. ThepathSeparator is before node-specific options inBooleanNode but after inIntegerNode

alexandre-daubois reacted with rocket emoji
*
* @return list<array{0: mixed, 1: mixed}>
*/
publicfunctiongetEquivalentValues():array
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This one may not be necessary.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

@alexandre-dauboisalexandre-dauboisalexandre-daubois left review comments

Assignees

No one assigned

Projects

None yet

Milestone

7.4

Development

Successfully merging this pull request may close these issues.

4 participants

@GromNaN@stof@alexandre-daubois@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp