Convert ComposerStabilityTypes constants to enum cases
This commit is contained in:
parent
a2149cdb66
commit
b5d35ed20e
2 changed files with 7 additions and 7 deletions
|
@ -22,15 +22,15 @@
|
|||
|
||||
namespace ncc\Enums\Types;
|
||||
|
||||
final class ComposerStabilityTypes
|
||||
enum ComposerStabilityTypes : string
|
||||
{
|
||||
public const DEV = 'dev';
|
||||
case DEV = 'dev';
|
||||
|
||||
public const ALPHA = 'alpha';
|
||||
case ALPHA = 'alpha';
|
||||
|
||||
public const BETA = 'beta';
|
||||
case BETA = 'beta';
|
||||
|
||||
public const RC = 'rc';
|
||||
case RC = 'rc';
|
||||
|
||||
public const STABLE ='stable';
|
||||
case STABLE ='stable';
|
||||
}
|
|
@ -192,7 +192,7 @@
|
|||
public function __construct()
|
||||
{
|
||||
$this->type = ComposerPackageTypes::LIBRARY;
|
||||
$this->minimum_stability = ComposerStabilityTypes::STABLE;
|
||||
$this->minimum_stability = ComposerStabilityTypes::STABLE->value;
|
||||
$this->abandoned = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue