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;
    }