-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
62bbaa5
commit 5282793
Showing
18 changed files
with
142 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\CodingStyle\Enum; | ||
|
||
use MyCLabs\Enum\Enum; | ||
|
||
/** | ||
* @method static PreferenceSelfThis PREFER_THIS() | ||
* @method static PreferenceSelfThis PREFER_SELF() | ||
*/ | ||
final class PreferenceSelfThis extends Enum | ||
{ | ||
/** | ||
* @api | ||
* @var string | ||
*/ | ||
private const PREFER_THIS = 'prefer_this'; | ||
|
||
/** | ||
* @api | ||
* @var string | ||
*/ | ||
private const PREFER_SELF = 'prefer_self'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Php80\Enum; | ||
|
||
use MyCLabs\Enum\Enum; | ||
|
||
/** | ||
* @method static MatchKind NORMAL() | ||
* @method static MatchKind ASSIGN() | ||
* @method static MatchKind RETURN() | ||
* @method static MatchKind THROW() | ||
*/ | ||
final class MatchKind extends Enum | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private const NORMAL = 'normal'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private const ASSIGN = 'assign'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private const RETURN = 'return'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private const THROW = 'throw'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.