public static function getSymfonyVersion($version)
    {
        return implode('.', \array_slice(array_map(static function ($val) {
            return (int) $val;
        }, explode('.', $version)), 0, 3));
    }
public static function getSymfonyVersion($version)
    {
        return implode('.', \array_slice(array_map(static function ($val) {
            return (int) $val;
        }, explode('.', $version)), 0, 3));
    }
public static function getSymfonyVersion ( $ version ) { return implode ( '.' , \ array_slice ( array_map ( static function ( $ val ) { return ( int ) $ val ; } , explode ( '.' , $ version ) ) , 0 , 3 ) ) ; }
Returns a cleaned version number.

@static

@param $version

@return string
Returns a cleaned version number .