Skip to content

Commit

Permalink
Add phprector and php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
stevleibelt committed Jul 29, 2024
1 parent 572a723 commit 404b288
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
.php-cs-fixer.cache
vendor
composer.lock
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@
],
"minimum-stability": "dev",
"require": {
"php": ">=5.3.3"
"php": ">=8.2"
},
"require-dev": {
"mockery/mockery": "0.9.4",
"phpunit/phpunit": "~4.8||~5.4"
"mockery/mockery": "~1.6",
"phpunit/phpunit": "~11",
"friendsofphp/php-cs-fixer": "dev-master",
"rector/rector": "dev-main"
},
"autoload": {
"psr-4": {
Expand Down
15 changes: 15 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\ValueObject\PhpVersion;

return RectorConfig::configure()
->withPaths([
__DIR__ . '/source'
])
// uncomment to reach your current PHP version
->withPhpSets(php83: true)
->withPreparedSets(deadCode: true, codeQuality: true)
->withTypeCoverageLevel(0);

0 comments on commit 404b288

Please sign in to comment.