Skip to content
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

Fixed NodeDefinition::example method usage #3081

Merged
merged 1 commit into from
Jan 7, 2021
Merged

Conversation

adamwojs
Copy link
Member

@adamwojs adamwojs commented Jan 6, 2021

Question Answer
JIRA issue -
Bug/Improvement yes
New feature no
Target version 7.5
BC breaks no
Tests pass yes
Doc needed no

According to symfony/symfony#23784 (comment) array could be passed as an argument to Symfony\Component\Config\Definition\Builder\NodeDefinition::example only when it's apply to array nodes.

In practice this misuse will cause "Notice: Array to string conversion" when dumping configuration reference to XML format.

image

TODO:

  • Implement feature / fix a bug.
  • Implement tests.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

@adamwojs adamwojs added the Bug label Jan 6, 2021
@adamwojs adamwojs requested review from lserwatka and a team January 6, 2021 22:03
@adamwojs adamwojs self-assigned this Jan 6, 2021
@adamwojs adamwojs changed the title Fixed Symfony\Component\Config\Definition\Builder\NodeDefinition::example usage Fixed NodeDefinition::example method usage Jan 6, 2021
@lserwatka lserwatka merged commit 552dfd9 into 7.5 Jan 7, 2021
@lserwatka lserwatka deleted the fix_example_usage branch January 7, 2021 08:05
@lserwatka
Copy link
Member

You can merge it up

@adamwojs
Copy link
Member Author

adamwojs commented Jan 7, 2021

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants