https://psalm.dev/r/726b2ba5b5
Result is not list<non-empty-string> when the argument is empty string and no flags are present. (but should be array<never, never>)
Glob needs a return type provider added to ensure the "non-empty-string" is not lost when a valid pattern is passed.
Bug added in #9814 @Hanmac