Skip to content

[6.0] fix: Do no sort listeners differently depending on their type - #165

Closed
phil-davis wants to merge 1 commit into
sabre-io:masterfrom
phil-davis:fix/sort-array-and-closure-the-same-6.0
Closed

[6.0] fix: Do no sort listeners differently depending on their type#165
phil-davis wants to merge 1 commit into
sabre-io:masterfrom
phil-davis:fix/sort-array-and-closure-the-same-6.0

Conversation

@phil-davis

Copy link
Copy Markdown
Contributor

Backport #162 to the 6.0 branch. This will allow a patch release 6.0.3. And that can be picked up by the current sabre/dav release series, which is still supporting PHP 7.4.

With array_multisort, when priority is the same it would fallback to
comparing values, and PHP will sort Closures after array callables.
This is not something we want as it means turning an array callable into
a Closure would potentially change its order, leading to unexpected
side-effects.

With array_multisort, when priority is the same it would fallback to
 comparing values, and PHP will sort Closures after array callables.
This is not something we want as it means turning an array callable into
 a Closure would potentially change its order, leading to unexpected
 side-effects.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.22%. Comparing base (0363477) to head (1990584).
⚠️ Report is 26 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #165      +/-   ##
============================================
+ Coverage     99.18%   99.22%   +0.03%     
- Complexity      111      119       +8     
============================================
  Files             7        7              
  Lines           370      388      +18     
============================================
+ Hits            367      385      +18     
  Misses            3        3              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@phil-davis

Copy link
Copy Markdown
Contributor Author

I mistakenly made this against master

@phil-davis phil-davis closed this Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants