#105662Use conditional return types in PathUtility::pathinfo()
Description
Return values of PathUtility::pathinfo() are deterministic and can be easily used for conditional return type hint, see https://www.php.net/manual/en/function.pathinfo.php#example-2284.