Skip to content

Commit c072aa8

Browse files
committed
fix expected command name order with mixed integer and string namespaces
1 parent 8fe5650 commit c072aa8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Descriptor/ApplicationDescription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private function sortCommands(array $commands): array
131131
}
132132

133133
if ($namespacedCommands) {
134-
ksort($namespacedCommands);
134+
ksort($namespacedCommands, \SORT_STRING);
135135
foreach ($namespacedCommands as $key => $commandsSet) {
136136
ksort($commandsSet);
137137
$sortedCommands[$key] = $commandsSet;

Tests/Descriptor/ApplicationDescriptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getNamespacesProvider()
3636
return [
3737
[['_global'], ['foobar']],
3838
[['a', 'b'], ['b:foo', 'a:foo', 'b:bar']],
39-
[['_global', 'b', 'z', 22, 33], ['z:foo', '1', '33:foo', 'b:foo', '22:foo:bar']],
39+
[['_global', 22, 33, 'b', 'z'], ['z:foo', '1', '33:foo', 'b:foo', '22:foo:bar']],
4040
];
4141
}
4242
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy