8000 [Serializer] Remove useless is_object condition by paradajozsef · Pull Request #17431 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Serializer] Remove useless is_object condition #17431

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

Merged
merged 1 commit into from
Jan 19, 2016

Conversation

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

This condition is useless, because $class is not used in getNormalizer().

@dupuchba
Copy link
Contributor

👍 good catch !

@dunglas
Copy link
Member
dunglas commented Jan 19, 2016

👍

@fabpot
Copy link
Member
fabpot commented Jan 19, 2016

Thank you @paradajozsef.

@fabpot fabpot merged commit f6fd5e4 into symfony:2.7 Jan 19, 2016
fabpot added a commit that referenced this pull request Jan 19, 2016
…ozsef)

This PR was merged into the 2.7 branch.

Discussion
----------

[Serializer] Remove useless is_object condition

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

[This condition](https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Serializer/Serializer.php#L185) is useless, because ```$class``` is not used in ```getNormalizer()```.

Commits
-------

f6fd5e4 Remove useless is_object condition
@paradajozsef paradajozsef deleted the remove-useless-condition branch January 21, 2016 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0