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 issue with variadic parameters not being passed like they should #5648

Closed

Conversation

marac19901990
Copy link
Contributor

Issue:

Solution:

  • fixed the issue and changed the tests to reflect the changes

Copy link

codecov bot commented Jan 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6d16518) 89.11% compared to head (09dc9ed) 89.61%.
Report is 55 commits behind head on 10.5.

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.
📢 Have feedback on the report? Share it here.

@sebastianbergmann sebastianbergmann added the feature/test-doubles Test Stubs and Mock Objects label Jan 7, 2024
@sebastianbergmann
Copy link
Owner

Does this problem also exist in PHPUnit 9.6?

@marac19901990
Copy link
Contributor Author

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

@marac19901990
Copy link
Contributor Author

Does this problem also exist in PHPUnit 9.6?

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

@sebastianbergmann
Copy link
Owner

Cherry-picked into 10.5 and merged to main from there. Thanks!

@marac19901990
Copy link
Contributor Author

Cherry-picked into 10.5 and merged to main from there. Thanks!

You didn't have to cherry pick, these are the 10.5 changes, there was another pull request for 9.6 :)

@sebastianbergmann
Copy link
Owner

sebastianbergmann commented Jan 12, 2024

I know :) I cherry-picked because I wanted to make some additional changes locally before the merge.

@marac19901990 marac19901990 deleted the 10.5-variadic-issue branch January 18, 2024 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/test-doubles Test Stubs and Mock Objects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants