-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
returnValueMap return null when key to match is object #4008
Comments
Thank you for your report. Please provide a minimal, self-contained, reproducing test case that shows the problem you are reporting. Without such a minimal, self-contained, reproducing test case I will not be able to investigate this issue. |
While trying to provide test I found whats the issue.
In my opinion its related to cloning the original object: Test is:
And when I change to use
|
The problem is probably in the
in the provided example testcase the php will do a strict check on the objects. |
No feedback, closing. |
Summary
This is not related to default null arguments.
I found same issue using it even when method doesn't have defaults null
Previous Behavior
On phpuni4 the method "getLegacyID" was returning proper integers from the map instead null
Current Behavior
On phpuni8 the method "getLegacyID" returns null per dummyAccountID , dummyClientID , dummySiteID instead the given integers from the map
How to reproduce
Create map from new instance of object and integers to return then pass it to
->will($this->returnValueMap($returnValueMap));
The text was updated successfully, but these errors were encountered: