1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00
This commit is contained in:
Robin Appelman 2022-03-09 23:16:16 +01:00
commit b423fa1789
2 changed files with 1 additions and 5 deletions

View file

@ -20,7 +20,6 @@ pub enum PhpVersion {
Php80,
Php74,
Php73,
Php72,
}
impl FromStr for PhpVersion {
@ -29,7 +28,6 @@ impl FromStr for PhpVersion {
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s {
"7" => Ok(PhpVersion::Php74),
"7.2" => Ok(PhpVersion::Php72),
"7.3" => Ok(PhpVersion::Php73),
"7.4" => Ok(PhpVersion::Php74),
"8" => Ok(PhpVersion::Php80),
@ -44,7 +42,6 @@ impl PhpVersion {
fn image(&self) -> &'static str {
// for now only 7.4
match self {
PhpVersion::Php72 => "icewind1991/haze:7.2",
PhpVersion::Php73 => "icewind1991/haze:7.3",
PhpVersion::Php74 => "icewind1991/haze:7.4",
PhpVersion::Php80 => "icewind1991/haze:8.0",
@ -54,7 +51,6 @@ impl PhpVersion {
pub fn name(&self) -> &'static str {
match self {
PhpVersion::Php72 => "7.2",
PhpVersion::Php73 => "7.3",
PhpVersion::Php74 => "7.4",
PhpVersion::Php80 => "8.0",