Skip to content

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

Merged
phil-davis merged 1 commit into
sabre-io:6.0from
phil-davis:fix/sort-array-and-closure-the-same-6.0.3
Jul 7, 2026
Merged

[6.0] fix: Do no sort listeners differently depending on their type#166
phil-davis merged 1 commit into
sabre-io:6.0from
phil-davis:fix/sort-array-and-closure-the-same-6.0.3

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.

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>
@phil-davis
phil-davis merged commit 130eb68 into sabre-io:6.0 Jul 7, 2026
15 checks passed
@phil-davis
phil-davis deleted the fix/sort-array-and-closure-the-same-6.0.3 branch July 7, 2026 04:53
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