private static function lowerConstantName(string $name): string
    {
        $parts = explode('\\', $name);

        $lastPart = array_pop($parts);

        $parts = array_map('strtolower', $parts);

        $parts[] = $lastPart;

        return implode('\\', $parts);
    }
private static function lowerConstantName(string $name): string
    {
        $parts = explode('\\', $name);

        $lastPart = array_pop($parts);

        $parts = array_map('strtolower', $parts);

        $parts[] = $lastPart;

        return implode('\\', $parts);
    }
private static function lowerConstantName ( string $ name ) : string { $ parts = explode ( '\\' , $ name ) ; $ lastPart = array_pop ( $ parts ) ; $ parts = array_map ( 'strtolower' , $ parts ) ; $ parts [ ] = $ lastPart ; return implode ( '\\' , $ parts ) ; }
Transforms the constant FQ name "Acme\Foo\X" to "acme\foo\X" since the namespace remains case insensitive for
constants regardless of whether or not constants actually are case insensitive.
Transforms the constant FQ name Acme \ Foo \ X to acme \ foo \ X since the namespace remains case insensitive for constants regardless of whether or not constants actually are case insensitive .