-
-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80c4fc8
commit 8a0d6d9
Showing
2 changed files
with
66 additions
and
10 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
33 changes: 33 additions & 0 deletions
33
...style/tests/Rector/ClassConst/VarConstantCommentRector/Fixture/skip_so_many_types.php.inc
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,33 @@ | ||
<?php | ||
|
||
namespace Rector\CodingStyle\Tests\Rector\ClassConst\VarConstantCommentRector\Fixture; | ||
|
||
use PHP_CodeSniffer\Fixer; | ||
use PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\LowerCaseConstantSniff; | ||
use PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\UpperCaseConstantSniff; | ||
use PHP_CodeSniffer\Standards\PSR12\Sniffs\Files\FileHeaderSniff; | ||
use PhpCsFixer\Fixer\Casing\ConstantCaseFixer; | ||
use PhpCsFixer\Fixer\Casing\LowercaseConstantsFixer; | ||
use PhpCsFixer\Fixer\ControlStructure\YodaStyleFixer; | ||
use PhpCsFixer\Fixer\FixerInterface; | ||
use PhpCsFixer\Fixer\LanguageConstruct\DeclareEqualNormalizeFixer; | ||
use PhpCsFixer\Fixer\Phpdoc\NoBlankLinesAfterPhpdocFixer; | ||
use PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer; | ||
|
||
final class SkipSoManyTypes | ||
{ | ||
/** | ||
* These groups do the opposite of each other, e.g. Yoda vs NoYoda. | ||
* | ||
* @var array<array<class-string<FixerInterface|Fixer>|string>> | ||
*/ | ||
private const CONFLICTING_CHECKER_GROUPS = [ | ||
['SlevomatCodingStandard\Sniffs\ControlStructures\DisallowYodaComparisonSniff', YodaStyleFixer::class], | ||
[LowerCaseConstantSniff::class, UpperCaseConstantSniff::class], | ||
[LowercaseConstantsFixer::class, UpperCaseConstantSniff::class], | ||
[ConstantCaseFixer::class, UpperCaseConstantSniff::class], | ||
['SlevomatCodingStandard\Sniffs\TypeHints\DeclareStrictTypesSniff', DeclareEqualNormalizeFixer::class], | ||
['SlevomatCodingStandard\Sniffs\TypeHints\DeclareStrictTypesSniff', BlankLineAfterOpeningTagFixer::class], | ||
[FileHeaderSniff::class, NoBlankLinesAfterPhpdocFixer::class], | ||
]; | ||
} |