private function getParsedStability($version)
    {
        // Drop aliasing if used
        $version   = preg_replace('/^([^,\s@]+) as .+$/', '$1', $version);
        $stability = $this->getStabilityInteger(VersionParser::parseStability($version));

        if ($stability === BasePackage::STABILITY_STABLE || $this->minimumStability > $stability) {
            // Ignore if 'stable' or more stable than the global minimum
            $stability = null;
        }

        return $stability;
    }
private function getParsedStability($version)
    {
        // Drop aliasing if used
        $version   = preg_replace('/^([^,\s@]+) as .+$/', '$1', $version);
        $stability = $this->getStabilityInteger(VersionParser::parseStability($version));

        if ($stability === BasePackage::STABILITY_STABLE || $this->minimumStability > $stability) {
            // Ignore if 'stable' or more stable than the global minimum
            $stability = null;
        }

        return $stability;
    }
private function getParsedStability ( $ version ) { // Drop aliasing if used $ version = preg_replace ( '/^([^,\s@]+) as .+$/' , '$1' , $ version ) ; $ stability = $ this -> getStabilityInteger ( VersionParser :: parseStability ( $ version ) ) ; if ( $ stability === BasePackage :: STABILITY_STABLE || $ this -> minimumStability > $ stability ) { // Ignore if 'stable' or more stable than the global minimum $ stability = null ; } return $ stability ; }
Get the stability of a version

@param  string  $version

@return int|null
Get the stability of a version