@nuno @nunomaduro I agreed with you on SortDirection, but I voted in favor so we...

@ramsey@phpc.social

@nuno
@nunomaduro I agreed with you on SortDirection, but I voted in favor so we can add it now to enable use of it in built-in functions and extensions later.

Imagine something like:

scandir(string $directory, SortDirection $sorting_order, …): array|false;

I suspect we'll see a few other enums added to the core to support these places.