From ba11569b58299f0bf8cea86b86b270faa77436ce Mon Sep 17 00:00:00 2001 From: Mark Boessenkool Date: Wed, 4 Sep 2019 01:33:28 +0200 Subject: [PATCH] upgraded the stubs to the Enum v3, but mentioned v2 style with comment --- src/Commands/stubs/enum.boot.stub | 3 ++- src/Commands/stubs/enum.labels.stub | 3 ++- src/Commands/stubs/enum.stub | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Commands/stubs/enum.boot.stub b/src/Commands/stubs/enum.boot.stub index 8de7267..a88eecb 100644 --- a/src/Commands/stubs/enum.boot.stub +++ b/src/Commands/stubs/enum.boot.stub @@ -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'; diff --git a/src/Commands/stubs/enum.labels.stub b/src/Commands/stubs/enum.labels.stub index 75930bd..6d2cebb 100644 --- a/src/Commands/stubs/enum.labels.stub +++ b/src/Commands/stubs/enum.labels.stub @@ -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'; diff --git a/src/Commands/stubs/enum.stub b/src/Commands/stubs/enum.stub index 12f1b66..8a0528e 100644 --- a/src/Commands/stubs/enum.stub +++ b/src/Commands/stubs/enum.stub @@ -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';