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

Remove useless ternary in the DecimalType #2309

Merged
merged 1 commit into from Jan 22, 2016
Merged

Remove useless ternary in the DecimalType #2309

merged 1 commit into from Jan 22, 2016

Conversation

ghost
Copy link

@ghost ghost commented Jan 22, 2016

@Ocramius Ocramius added this to the 2.6 milestone Jan 22, 2016
@Ocramius Ocramius self-assigned this Jan 22, 2016
@Ocramius
Copy link
Member

if ($val === true) {
    return true;
} elseif ($val === false) {
    return false;
} else {
    return $val;
}

#facepalm

Thanks for sending the patch, @JHGitty!

Ocramius added a commit that referenced this pull request Jan 22, 2016
Fix unnecessary check in DecimalType
@Ocramius Ocramius merged commit eb48797 into doctrine:master Jan 22, 2016
@ghost
Copy link
Author

ghost commented Jan 22, 2016

@Ocramius As I understand this fix could also be merged to 2.1, 2.2, 2.3, 2.4 and 2.5 (not to 2.0)
because it is just a minor code improvement. Are these versions still supported and should get this fix?

@Ocramius
Copy link
Member

@JHGitty anything that isn't an actual bugfix won't make it into stable versions

@ghost
Copy link
Author

ghost commented Jan 22, 2016

@Ocramius Okay. Thanks 👍

@deeky666
Copy link
Member

lol crying tears over here :D thanks @JHGitty @Ocramius

@Ocramius Ocramius changed the title Fix unnecessary check in DecimalType Remove useless ternary in the DecimalType Jul 22, 2017
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.

2 participants