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

Box BooleanGenerator shrink return value #131

Merged
merged 1 commit into from
Jan 11, 2020

Conversation

Vinai
Copy link
Contributor

@Vinai Vinai commented Dec 30, 2019

The \Eris\Generator\BooleanGenerator::shrink method currently returns
the unboxed value false.

This PR makes the return value a \Eris\Generator\GeneratedValueSingle matching the \Eris\Generator::shrink signature.

This PR is a backward compatibility breaking bugfix.

Related test: \Eris\Generator\BooleanGeneratorTest::testShrinksToFalse

Fixes issue #123

The \Eris\Generator\BooleanGenerator::shrink method currently returns
the unboxed value `false`.
This PR makes the return value a \Eris\Generator\GeneratedValueSingle.

Fixes issue giorgiosironi#123

This PR is a backward compatibility breaking bugfix.

Related test: \Eris\Generator\BooleanGeneratorTest::testShrinksToFalse
Copy link
Owner

@giorgiosironi giorgiosironi left a comment

Choose a reason for hiding this comment

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

The Generator interface is clear, and bug fixes are allowed to break backward compatibility

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.

BooleanGenerator::shrink() returns a different type to Generator::shrink()
2 participants