-
-
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
Fix issue with variadic parameters not being passed like they should #5648
Fix issue with variadic parameters not being passed like they should #5648
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 10.5 #5648 +/- ##
============================================
+ Coverage 89.11% 89.61% +0.49%
- Complexity 6382 6420 +38
============================================
Files 673 680 +7
Lines 20355 20405 +50
============================================
+ Hits 18139 18285 +146
+ Misses 2216 2120 -96 ☔ View full report in Codecov by Sentry. |
Does this problem also exist in PHPUnit 9.6? |
I forgot to check, I'll check and update if needed, my guess is that it doesn't work there either |
It can't be fixed in 9.6, I made a pull request but then realized that array unpacking for string indexed elements is not supported prior to php 8.1. I'll update the 10.5 pull request with a better solution, but nothing to be done for 9.6 |
Cherry-picked into |
You didn't have to cherry pick, these are the 10.5 changes, there was another pull request for 9.6 :) |
I know :) I cherry-picked because I wanted to make some additional changes locally before the merge. |
Issue:
willReturnCallback()
does not pass unknown named variadic arguments to callback #5455 variadic arguments not being passed to closureSolution: