public static function getTypeName($typeFqcn)
    {
        // needed to avoid collisions between immutable and non-immutable date types,
        // which are mapped to the same Symfony Form type classes
        $filteredNameToClassMap = \array_filter(self::$nameToClassMap, function ($typeName) {
            return !\in_array($typeName, ['datetime_immutable', 'date_immutable', 'time_immutable']);
        }, ARRAY_FILTER_USE_KEY);
        $classToNameMap = \array_flip($filteredNameToClassMap);

        return $classToNameMap[$typeFqcn] ?? $typeFqcn;
    }
public static function getTypeName($typeFqcn)
    {
        // needed to avoid collisions between immutable and non-immutable date types,
        // which are mapped to the same Symfony Form type classes
        $filteredNameToClassMap = \array_filter(self::$nameToClassMap, function ($typeName) {
            return !\in_array($typeName, ['datetime_immutable', 'date_immutable', 'time_immutable']);
        }, ARRAY_FILTER_USE_KEY);
        $classToNameMap = \array_flip($filteredNameToClassMap);

        return $classToNameMap[$typeFqcn] ?? $typeFqcn;
    }
public static function getTypeName ( $ typeFqcn ) { // needed to avoid collisions between immutable and non-immutable date types, // which are mapped to the same Symfony Form type classes $ filteredNameToClassMap = \ array_filter ( self :: $ nameToClassMap , function ( $ typeName ) { return ! \ in_array ( $ typeName , [ 'datetime_immutable' , 'date_immutable' , 'time_immutable' ] ) ; } , ARRAY_FILTER_USE_KEY ) ; $ classToNameMap = \ array_flip ( $ filteredNameToClassMap ) ; return $ classToNameMap [ $ typeFqcn ] ?? $ typeFqcn ; }
It returns the short type name of the given FQCN. If the type name is not
found, it returns the given value.

@param string $typeFqcn

@return string
It returns the short type name of the given FQCN . If the type name is not found it returns the given value .