Skip to content

Commit 5f47161

Browse files
committed
Use native property types for ->value on PHP 8
1 parent 3ab6b7e commit 5f47161

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/php80/EmulatedIntEnum.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ abstract class EmulatedIntEnum implements BackedEnum
2323
/**
2424
* The value of the current case
2525
*
26-
* @var int
2726
* @readonly
2827
*/
29-
public $value;
28+
public int $value;
3029

3130
/**
3231
* @param int $value

src/php80/EmulatedStringEnum.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ abstract class EmulatedStringEnum implements BackedEnum
2020
/**
2121
* The value of the current case
2222
*
23-
* @var string
2423
* @readonly
2524
*/
26-
public $value;
25+
public string $value;
2726

2827
/**
2928
* @param string $value

0 commit comments

Comments
 (0)