8000 Allow null values as tag attributes by lsmith77 · Pull Request #9046 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Allow null values as tag attributes #9046

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

Closed
wants to merge 1 commit into from

Conversation

lsmith77
Copy link
Contributor
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets -
License MIT
Doc PR -

see also symfony/dependency-injection@3a194b7#commitcomment-4096394

fixes a regression see https://travis-ci.org/symfony-cmf/RoutingBundle/jobs/11362114#L165

@@ -224,7 +224,7 @@ private function parseDefinition($id, $service, $file)
unset($tag['name']);

foreach ($tag as $attribute => $value) {
if (!is_scalar($value)) {
if (!is_scalar($value) && !is_null($value)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure if we also want to make the change here .. but I guess it would be consistent to do so.

Copy link
Member

Choose a reason for hiding this comment

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

+1 for consistency

Can you change the test to null !==? Also, a unit test would be good to avoid any regressions.

@fabpot fabpot closed this in f4f6b06 Sep 16, 2013
@lsmith77 lsmith77 deleted the allow_null_tags branch September 16, 2013 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0