Skip to content

Commit 189c478

Browse files
committed
refactor: adds property types
1 parent 970d794 commit 189c478

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Common/AbstractEnum.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ abstract class AbstractEnum
4040
/**
4141
* @var string The name of the enum constant
4242
*/
43-
private $name;
43+
private string $name;
4444

4545
/**
4646
* @var array<string, array<string, string|int>> Cache for reflection data
4747
*/
48-
private static $cache = [];
48+
private static array $cache = [];
4949

5050
/**
5151
* @var array<string, array<string, self>> Cache for enum instances
5252
*/
53-
private static $instances = [];
53+
private static array $instances = [];
5454

5555
/**
5656
* Constructor is private to ensure instances are created through static methods

0 commit comments

Comments
 (0)