Skip to content

Commit b8e03a5

Browse files
committed
Fix ordering of URLs in github hook updater
1 parent 5593963 commit b8e03a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/GitHubUserMigrationWorker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static function ($hook) {
122122
));
123123
// sort shorter urls first as that should lead us to find the correct one first
124124
usort($currentHooks, static function ($a, $b) {
125-
return $a['config']['url'] <=> $a['config']['url'];
125+
return strlen($a['config']['url']) - strlen($b['config']['url']);
126126
});
127127

128128
$hookData = $this->getGitHubHookData();

0 commit comments

Comments
 (0)