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

Fix: Method invocations on methods of ObjectProphecy might have side effects #119

Merged
merged 1 commit into from
Feb 5, 2020

Conversation

localheinz
Copy link
Contributor

This PR

  • modifies the return value of ObjectPropecyMethodReflection::hasSideEffects() as invoking methods on an instance of Prophecy\Prophecy\ObjectProphecy might have side effects

Fixes #112.

πŸ’β€β™‚ Does that make sense, @func0der?

@localheinz localheinz added the bug label Feb 5, 2020
@localheinz localheinz self-assigned this Feb 5, 2020
@localheinz localheinz merged commit ecd367a into Jan0707:master Feb 5, 2020
@localheinz localheinz deleted the fix/side-effects branch February 5, 2020 16:39
@func0der
Copy link

func0der commented Feb 5, 2020

Totally fine for me if this gets rid of the errors during PHPStan checks ^ ^ Thanks for the quick work :)

@localheinz
Copy link
Contributor Author

You are welcome, @func0der!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

\JanGregor\Prophecy\Reflection\ObjectProphecyMethodReflection::hasSideEffects() should be 'yes' for PHP >7.0
2 participants