src/ApiSettings.php
public static function getVersion(string $version = ''): string
    {
        if ($version === '') {
            $version = PrettyVersions::getVersion('api-clients/pusher')->getFullVersion();
        }

        list($version, $hash) = explode('@', $version);

        if (strpos($version, 'dev') !== false) {
            return '0.0.1-' . $hash;
        }

        return $version;
    }
public static function getVersion(string $version = ''): string
    {
        if ($version === '') {
            $version = PrettyVersions::getVersion('api-clients/pusher')->getFullVersion();
        }

        list($version, $hash) = explode('@', $version);

        if (strpos($version, 'dev') !== false) {
            return '0.0.1-' . $hash;
        }

        return $version;
    }
public static function getVersion ( string $ version = '' ) : string { if ( $ version === '' ) { $ version = PrettyVersions :: getVersion ( 'api-clients/pusher' ) -> getFullVersion ( ) ; } list ( $ version , $ hash ) = explode ( '@' , $ version ) ; if ( strpos ( $ version , 'dev' ) !== false ) { return '0.0.1-' . $ hash ; } return $ version ; }
Create Pusher compatible version.

@param  string $version
@return string
Create Pusher compatible version .