* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Fxp\Composer\AssetPlugin\Package\Version; use Composer\Package\Version\VersionParser as BaseVersionParser; /** * Lazy loader for asset package. * * @author François Pluchino */ class VersionParser extends BaseVersionParser { /** * Returns the stability of a version. * * @param string $version * * @return string */ public static function parseStability($version) { $stability = parent::parseStability($version); return false !== strpos($version, '-patch') ? 'dev' : $stability; } }