You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same parameters are used in the referenced method, but still, I can't mock this function and receive the error: Return value must be of type Objects, null returned.
When I provide defaults values for all the preceding parameters it works fine.
The text was updated successfully, but these errors were encountered:
stof
transferred this issue from phpspec/prophecy-phpunit
Nov 26, 2021
jorgsowa
changed the title
PHP8 named arguemnts are not supported
PHP8 named arguments are not supported
Nov 26, 2021
Workaround for this issue. Just add all missing parameters with the default value preceding the named arguments (any named arguments. Those must be in the correct order.
I found out that it's not possible to mock methods which are using named parameters. Example:
The same parameters are used in the referenced method, but still, I can't mock this function and receive the error:
Return value must be of type Objects, null returned
.When I provide defaults values for all the preceding parameters it works fine.
The text was updated successfully, but these errors were encountered: