Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Strict] Allow check '0' empty zero on BooleanInTernaryOperatorRuleFi…
…xerRector on string type (#5297) * [Strict] Allow check 0 empty zero on BooleanInTernaryOperatorRuleFixerRector on string type * fix * [ci-review] Rector Rectify * [ci-review] Rector Rectify * [ci-review] Rector Rectify * Fix * Fix * fix --------- Co-authored-by: GitHub Action <actions@github.com>
- Loading branch information
1 parent
e3f909c
commit d9c5d8f
Showing
17 changed files
with
93 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector; | ||
use Rector\Php83\Rector\ClassConst\AddTypeToConstRector; | ||
|
||
use Rector\Config\RectorConfig; | ||
|
||
return static function (RectorConfig $rectorConfig): void { | ||
$rectorConfig->rules([ | ||
\Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector::class, | ||
\Rector\Php83\Rector\ClassConst\AddTypeToConstRector::class, | ||
AddOverrideAttributeToOverriddenMethodsRector::class, | ||
AddTypeToConstRector::class, | ||
]); | ||
}; |
3 changes: 2 additions & 1 deletion
3
rules-tests/Php83/Rector/ClassConst/AddTypeToConstRector/config/configured_rule.php
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
use Rector\Php83\Rector\ClassConst\AddTypeToConstRector; | ||
|
||
use Rector\Config\RectorConfig; | ||
use Rector\Core\ValueObject\PhpVersion; | ||
|
||
return static function (RectorConfig $rectorConfig): void { | ||
$rectorConfig->rule(\Rector\Php83\Rector\ClassConst\AddTypeToConstRector::class); | ||
$rectorConfig->rule(AddTypeToConstRector::class); | ||
|
||
$rectorConfig->phpVersion(PhpVersion::PHP_83); | ||
}; |
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
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
Oops, something went wrong.