Skip to content

[2.6] CS Fixes: lowercase null constants #12879

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
Closed

Conversation

keradus
Copy link
Member

@keradus keradus commented Dec 6, 2014

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? ?
Fixed tickets N/A
License MIT
Doc PR N/A

Addition for #12872

@@ -1072,6 +1072,11 @@ private function exportParameters($parameters, $path = '', $indent = 12)
throw new InvalidArgumentException(sprintf('You cannot dump a container with parameters that contain expressions. Expression "%s" found in "%s".', $value, $path.'/'.$key));
} else {
$value = $this->export($value);

// If exported value is `null` then standardize it: `true` and `false` are exported in lower-case, so let do the same with `null`.
Copy link
Member

Choose a reason for hiding this comment

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

We should do the same for TRUE and FALSE, but frankly, we don't care as we are talking about generated code.

@fabpot
Copy link
Member

fabpot commented Dec 7, 2014

It's not worth the additional code. Closing it.

@fabpot fabpot closed this Dec 7, 2014
@keradus keradus deleted the 2.6-cs branch December 7, 2014 18:26
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