Gc\Version::compareVersion PHP Метод

compareVersion() публичный статический Метод

Compare the specified GotCms version string $version with the current Gc\Version::VERSION of GotCms.
public static compareVersion ( string $version ) : integer
$version string A version string (e.g. "0.7.1").
Результат integer -1 if the $version is older, 0 if they are the same, and +1 if $version is newer.
    public static function compareVersion($version)
    {
        return version_compare($version, strtolower(self::VERSION));
    }