Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Enums/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract class Enum implements EnumContract, JsonSerializable
/**
* The current value of the enum.
*
* @var int
* @var int|string
*/
protected $enumValue;

Expand Down Expand Up @@ -55,7 +55,7 @@ public static function keys()
*
* @throws UndefinedEnumValueException
*
* @return string
* @return int|string
*/
public function get($enumValue)
{
Expand Down Expand Up @@ -90,7 +90,7 @@ public function set($enumValue)
/**
* Returns the current enum value.
*
* @return int
* @return int|string
*/
public function value()
{
Expand Down