1
0
Fork 0

Change default minimum-stability to "stable", fixes #744

pull/871/merge
Jordi Boggiano 2012-07-04 14:22:09 +02:00
parent f8d671a07a
commit e6f7150196
6 changed files with 8 additions and 9 deletions

View File

@ -33,8 +33,7 @@ class Pool
protected $acceptableStabilities;
protected $stabilityFlags;
// TODO BC change to stable end of june?
public function __construct($minimumStability = 'dev', array $stabilityFlags = array())
public function __construct($minimumStability = 'stable', array $stabilityFlags = array())
{
$stabilities = BasePackage::$stabilities;
$this->acceptableStabilities = array();

View File

@ -132,8 +132,7 @@ class Locker
{
$lockData = $this->getLockData();
// TODO BC change dev to stable end of june?
return isset($lockData['minimum-stability']) ? $lockData['minimum-stability'] : 'dev';
return isset($lockData['minimum-stability']) ? $lockData['minimum-stability'] : 'stable';
}
public function getStabilityFlags()

View File

@ -48,8 +48,7 @@ class MemoryPackage extends BasePackage
protected $prettyAlias;
protected $dev;
// TODO BC change dev to stable end of june?
protected $minimumStability = 'dev';
protected $minimumStability = 'stable';
protected $stabilityFlags = array();
protected $references = array();

View File

@ -31,7 +31,7 @@ class DefaultPolicyTest extends TestCase
public function setUp()
{
$this->pool = new Pool;
$this->pool = new Pool('dev');
$this->repo = new ArrayRepository;
$this->repoInstalled = new ArrayRepository;

View File

@ -40,7 +40,8 @@ Aliases take precedence over default package even if default is selected
"a/a": "dev-master",
"a/b": "dev-master",
"a/req": "dev-feature-foo as dev-master"
}
},
"minimum-stability": "dev"
}
--RUN--
install

View File

@ -42,7 +42,8 @@ Aliases take precedence over default package
"a/a": "1.*",
"a/b": "1.*",
"a/c": "dev-feature-foo as dev-master"
}
},
"minimum-stability": "dev"
}
--RUN--
install