Skip to content

Commit 6643311

Browse files
committed
Merge remote-tracking branch 'origin/main' into muliple-annotations
2 parents 2463982 + ba2b506 commit 6643311

File tree

4 files changed

+38
-105
lines changed

4 files changed

+38
-105
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,4 @@ Please have a look at [`CONTRIBUTING.md`](CONTRIBUTING.md).
138138

139139
## ⭐ License
140140

141-
This project is licensed under [GNU General Public License 3.0 (or later)](LICENSE).
141+
This project is licensed under [GNU General Public License 3.0 (or later)](LICENSE.md).

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
},
2828
"require-dev": {
2929
"armin/editorconfig-cli": "^1.0 || ^2.0",
30-
"eliashaeussler/rector-config": "^3.0",
3130
"ergebnis/composer-normalize": "^2.44",
3231
"konradmichalik/php-cs-fixer-preset": "^0.1.0",
3332
"phpstan/phpstan": "^2.0",
3433
"phpstan/phpstan-phpunit": "^2.0",
3534
"phpstan/phpstan-symfony": "^2.0",
36-
"phpunit/phpunit": "^10.2 || ^11.0 || ^12.0"
35+
"phpunit/phpunit": "^10.2 || ^11.0 || ^12.0",
36+
"rector/rector": "^2.2"
3737
},
3838
"autoload": {
3939
"psr-4": {

composer.lock

Lines changed: 19 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rector.php

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,22 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
use EliasHaeussler\RectorConfig\Config\Config;
1514
use Rector\Config\RectorConfig;
16-
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
17-
use Rector\PHPUnit\PHPUnit60\Rector\ClassMethod\AddDoesNotPerformAssertionToNonAssertingTestRector;
15+
use Rector\Set\ValueObject\LevelSetList;
16+
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
1817
use Rector\ValueObject\PhpVersion;
1918

20-
return static function (RectorConfig $rectorConfig): void {
21-
Config::create($rectorConfig, PhpVersion::PHP_81)
22-
->in(
23-
__DIR__.'/src',
24-
__DIR__.'/tests',
25-
)
26-
->not(
27-
__DIR__.'/tests/vendor',
28-
)
29-
->withSymfony()
30-
->withPHPUnit()
31-
->skip(NullToStrictStringFuncCallArgRector::class, [
32-
'src/Command/ValidateTranslationCommand.php',
33-
])
34-
->skip(AddDoesNotPerformAssertionToNonAssertingTestRector::class)
35-
->apply()
36-
;
37-
};
19+
return RectorConfig::configure()
20+
->withPaths([
21+
__DIR__.'/src',
22+
__DIR__.'/tests',
23+
])
24+
->withPhpVersion(PhpVersion::PHP_81)
25+
->withSets([
26+
LevelSetList::UP_TO_PHP_81,
27+
])
28+
->withComposerBased(symfony: true)
29+
->withRules([
30+
AddVoidReturnTypeWhereNoReturnRector::class,
31+
])
32+
;

0 commit comments

Comments
 (0)