diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 801af43..2caf24f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,7 +15,7 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.3, 8.4] + php: [8.2, 8.3, 8.4, 8.5] name: PHP ${{ matrix.php }} diff --git a/src/EnumGetter.php b/src/EnumGetter.php index 30a912f..edf3c5b 100644 --- a/src/EnumGetter.php +++ b/src/EnumGetter.php @@ -43,7 +43,7 @@ public function value(): string */ public static function of(string $name): static { - return self::{$name}; + return constant(self::class.'::'.$name); } /**