Skip to content

Commit

Permalink
upgraded the stubs to the Enum v3, but mentioned v2 style with comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TheM1984 committed Sep 3, 2019
1 parent 4209320 commit ba11569
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Commands/stubs/enum.boot.stub
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use Konekt\Enum\Enum;

class DummyClass extends Enum
{
const __default = self::OPTION_ONE;
const __DEFAULT = self::OPTION_ONE;
// const __default = self::OPTION_ONE; // default for v2

const OPTION_ONE = 'option_one';
const OPTION_TWO = 'option_two';
Expand Down
3 changes: 2 additions & 1 deletion src/Commands/stubs/enum.labels.stub
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use Konekt\Enum\Enum;

class DummyClass extends Enum
{
const __default = self::OPTION_ONE;
const __DEFAULT = self::OPTION_ONE;
// const __default = self::OPTION_ONE; // default for v2

const OPTION_ONE = 'option_one';
const OPTION_TWO = 'option_two';
Expand Down
3 changes: 2 additions & 1 deletion src/Commands/stubs/enum.stub
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use Konekt\Enum\Enum;

class DummyClass extends Enum
{
const __default = self::OPTION_ONE;
const __DEFAULT = self::OPTION_ONE;
// const __default = self::OPTION_ONE; // default for v2

const OPTION_ONE = 'option_one';
const OPTION_TWO = 'option_two';
Expand Down

0 comments on commit ba11569

Please sign in to comment.