X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Fsrc%2FPsy%2FCommand%2FListCommand%2FClassConstantEnumerator.php;fp=vendor%2Fpsy%2Fpsysh%2Fsrc%2FPsy%2FCommand%2FListCommand%2FClassConstantEnumerator.php;h=fc974b2d944d4ec2061d49c964ffefea5c2bf5b0;hp=ff3e7ea748787b57436148f953be887e1ff8081e;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/psy/psysh/src/Psy/Command/ListCommand/ClassConstantEnumerator.php b/vendor/psy/psysh/src/Psy/Command/ListCommand/ClassConstantEnumerator.php index ff3e7ea74..fc974b2d9 100644 --- a/vendor/psy/psysh/src/Psy/Command/ListCommand/ClassConstantEnumerator.php +++ b/vendor/psy/psysh/src/Psy/Command/ListCommand/ClassConstantEnumerator.php @@ -77,8 +77,9 @@ class ClassConstantEnumerator extends Enumerator $constants[$name] = $constReflector; } - // @todo this should be natcasesort - ksort($constants); + // @todo switch to ksort after we drop support for 5.3: + // ksort($constants, SORT_NATURAL | SORT_FLAG_CASE); + uksort($constants, 'strnatcasecmp'); return $constants; }