Skip to content

Commit d5be311

Browse files
committed
convert enums to simple classes for now for PHP 8.0 support
1 parent 73e0e20 commit d5be311

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/Enums/FolderSortingMethod.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Opcodes\LogViewer\Enums;
44

5-
enum FolderSortingMethod: string
5+
class FolderSortingMethod
66
{
7-
case Alphabetical = 'Alphabetical';
8-
case ModifiedTime = 'ModifiedTime';
7+
public const Alphabetical = 'Alphabetical';
8+
public const ModifiedTime = 'ModifiedTime';
99
}

src/Enums/SortingOrder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Opcodes\LogViewer\Enums;
44

5-
enum SortingOrder: string
5+
class SortingOrder
66
{
7-
case Ascending = 'asc';
8-
case Descending = 'desc';
7+
public const Ascending = 'asc';
8+
public const Descending = 'desc';
99
}

src/Enums/Theme.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Opcodes\LogViewer\Enums;
44

5-
enum Theme: string
5+
class Theme
66
{
7-
case System = 'System';
8-
case Light = 'Light';
9-
case Dark = 'Dark';
7+
public const System = 'System';
8+
public const Light = 'Light';
9+
public const Dark = 'Dark';
1010
}

0 commit comments

Comments
 (0)