Change default minimum-stability to "stable", fixes #744
parent
f8d671a07a
commit
e6f7150196
|
@ -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();
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue