-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Showing
50 changed files
with
255 additions
and
286 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,20 +1,21 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text eol=lf | ||
|
||
.github export-ignore | ||
benchmarks export-ignore | ||
tests export-ignore | ||
examples export-ignore | ||
phpstan export-ignore | ||
.codecov.yml export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
CONTRIBUTING.md export-ignore | ||
generate-class-reference.php export-ignore | ||
mkdocs.yml export-ignore | ||
phpbench.json export-ignore | ||
.php-cs-fixer.php export-ignore | ||
phpstan.neon.dist export-ignore | ||
phpstan-baseline.neon export-ignore | ||
phpunit.xml.dist export-ignore | ||
renovate.json export-ignore | ||
/.github export-ignore | ||
/benchmarks export-ignore | ||
/tests export-ignore | ||
/examples export-ignore | ||
/phpstan export-ignore | ||
/.codecov.yml export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/CONTRIBUTING.md export-ignore | ||
/generate-class-reference.php export-ignore | ||
/mkdocs.yml export-ignore | ||
/phpbench.json export-ignore | ||
/.php-cs-fixer.php export-ignore | ||
/phpstan.neon.dist export-ignore | ||
/phpstan-baseline.neon export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/rector.php export-ignore | ||
/renovate.json export-ignore |
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,30 @@ | ||
<?php declare(strict_types=1); | ||
|
||
use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector; | ||
use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; | ||
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector; | ||
use Rector\CodeQuality\Rector\Isset_\IssetOnPropertyObjectToPropertyExistsRector; | ||
use Rector\Config\RectorConfig; | ||
use Rector\Set\ValueObject\SetList; | ||
|
||
return static function (RectorConfig $rectorConfig): void { | ||
$rectorConfig->sets([ | ||
SetList::CODE_QUALITY, | ||
]); | ||
$rectorConfig->skip([ | ||
CallableThisArrayToAnonymousFunctionRector::class, // Callable in array form is shorter and more efficient | ||
IssetOnPropertyObjectToPropertyExistsRector::class, // isset() is nice when moving towards typed properties | ||
FlipTypeControlToUseExclusiveTypeRector::class, // Unnecessarily complex with PHPStan | ||
UnusedForeachValueToArrayKeysRector::class, // Less efficient | ||
]); | ||
$rectorConfig->paths([ | ||
__DIR__ . '/examples', | ||
__DIR__ . '/phpstan', | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests', | ||
__DIR__ . '/.php-cs-fixer.php', | ||
__DIR__ . '/generate-class-reference.php', | ||
__DIR__ . '/rector.php', | ||
]); | ||
$rectorConfig->phpstanConfig(__DIR__ . '/phpstan.neon'); | ||
}; |
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.