Skip to content

Commit 97543da

Browse files
authored
Sync enum with EN (#2050)
1 parent 12b024d commit 97543da

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

language/enumerations.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 7541512acf899391b68c3b6bae66a4fcc65e6c4e Maintainer: pierrick Status: ready -->
2+
<!-- EN-Revision: 3bc8fc7b9785c335e55d83986e6cd8968498dcfb Maintainer: pierrick Status: ready -->
33
<!-- Reviewed: no -->
44
<chapter xml:id="language.enumerations" xmlns="http://docbook.org/ns/docbook">
55
<title>Les énumérations</title>
@@ -458,12 +458,12 @@ enum Size
458458
case Medium;
459459
case Large;
460460
461-
public static function fromLength(int $cm): static
461+
public static function fromLength(int $cm): self
462462
{
463463
return match(true) {
464-
$cm < 50 => static::Small,
465-
$cm < 100 => static::Medium,
466-
default => static::Large,
464+
$cm < 50 => self::Small,
465+
$cm < 100 => self::Medium,
466+
default => self::Large,
467467
};
468468
}
469469
}
@@ -921,10 +921,10 @@ enum UserStatus: string
921921
public function label(): string
922922
{
923923
return match($this) {
924-
static::Pending => 'Pending',
925-
static::Active => 'Active',
926-
static::Suspended => 'Suspended',
927-
static::CanceledByUser => 'Canceled by user',
924+
self::Pending => 'Pending',
925+
self::Active => 'Active',
926+
self::Suspended => 'Suspended',
927+
self::CanceledByUser => 'Canceled by user',
928928
};
929929
}
930930
}

0 commit comments

Comments
 (0)