8000 [HttpKernel] allow null value in fragment handler by kbond · Pull Request #10067 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpKernel] allow null value in fragment handler #10067

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

[HttpKernel] allow null value in fragment handler #10067

wants to merge 1 commit into from

Conversation

kbond
Copy link
Member
@kbond kbond commented Jan 18, 2014
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #10066
License MIT
Doc PR n/a

@@ -82,8 +82,8 @@ private function checkNonScalar($values)
foreach ($values as $key => $value) {
if (is_array($value)) {
$this->checkNonScalar($value);
} elseif (!is_scalar($value)) {
throw new \LogicException(sprintf('Controller attributes cannot contain non-scalar values (value for key "%s" is not a scalar).', $key));
} elseif (!is_scalar($value) && !is_null($value)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

slight detail: we use null !== $value everywhere.

Copy link
Contributor

Choose a reason for hiding this comment

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

slight correction: almost everywhere.

@fabpot
Copy link
Member
fabpot commented Jan 20, 2014

Thank you @kbond.

fabpot added a commit that referenced this pull request Jan 20, 2014
This PR was submitted for the 2.4-dev branch but it was merged into the 2.4 branch instead (closes #10067).

Discussion
----------

[HttpKernel] allow null value in fragment handler

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #10066
| License       | MIT
| Doc PR        | n/a

Commits
-------

534deef [HttpKernel] allow null value in fragment handler
@fabpot fabpot closed this Jan 20, 2014
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.

4 participants
0