Skip to content

Commit 7234e1d

Browse files
committed
Update packages, add Rector
1 parent 050dcf7 commit 7234e1d

21 files changed

Lines changed: 533 additions & 3387 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
on:
2+
workflow_dispatch: ~
23
push:
34
branches: ['main', '*.*.x']
45
pull_request: ~

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
},
1919
"require-dev": {
2020
"bamarni/composer-bin-plugin": "^1.8.2",
21-
"phpunit/phpunit": "^10.5.45",
22-
"symfony/var-dumper": "^6.4.18 || ^7.2.3"
21+
"phpunit/phpunit": "^10.5.46",
22+
"symfony/var-dumper": "^6.4.21 || ^7.2.3"
2323
},
2424
"autoload": {
2525
"psr-4": {
@@ -49,14 +49,14 @@
4949
}
5050
},
5151
"scripts": {
52-
"check-require": "tools/composer-require-checker/vendor/bin/composer-require-checker",
53-
"check-unused": "tools/composer-unused/vendor/bin/composer-unused",
52+
"analyse-deps": "tools/composer-dependency-analyser/vendor/bin/composer-dependency-analyser",
5453
"fixcs": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --diff --verbose",
5554
"infection": "tools/infection/vendor/bin/infection --show-mutations",
5655
"normalize": "@composer bin composer-normalize normalize --diff ../../composer.json",
5756
"phpstan": "tools/phpstan/vendor/bin/phpstan analyze",
5857
"pre-command-run": "mkdir -p var",
5958
"psalm": "tools/psalm/vendor/bin/psalm --show-info --no-diff --no-cache",
59+
"rector": "tools/rector/vendor/bin/rector process",
6060
"test": "phpunit"
6161
}
6262
}

composer.lock

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

psalm.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
</ignoreExceptions>
4141

4242
<!--<issueHandlers>
43+
<MissingOverrideAttribute errorLevel="suppress"/>
4344
<PluginIssue name="UnspecifiedVisibility">
4445
<errorLevel type="suppress">
4546
<directory name="tests"/>

rector.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
use Rector\Php80\Rector\Class_\StringableForToStringRector;
7+
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;
8+
9+
return RectorConfig::configure()
10+
->withPaths([
11+
__DIR__ . '/src',
12+
__DIR__ . '/tests',
13+
])
14+
->withParallel()
15+
->withCache(__DIR__ . '/var/rector')
16+
->withPhpSets()
17+
->withSkip([
18+
StringableForToStringRector::class,
19+
AddOverrideAttributeToOverriddenMethodsRector::class,
20+
]);

tools/composer-require-checker/composer.json renamed to tools/composer-dependency-analyser/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"require-dev": {
3-
"maglnet/composer-require-checker": "^4.7.1"
3+
"shipmonk/composer-dependency-analyser": "^1.8.2"
44
},
55
"config": {
66
"bump-after-update": "dev",
77
"platform": {
8-
"php": "8.1"
8+
"php": "8.1.30"
99
},
1010
"sort-packages": true
1111
}

tools/composer-dependency-analyser/composer.lock

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

tools/composer-normalize/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"require-dev": {
3-
"ergebnis/composer-normalize": "^2.45"
3+
"ergebnis/composer-normalize": "^2.47"
44
},
55
"config": {
66
"allow-plugins": {
77
"ergebnis/composer-normalize": true
88
},
99
"bump-after-update": "dev",
1010
"platform": {
11-
"php": "8.1"
11+
"php": "8.1.30"
1212
},
1313
"sort-packages": true
1414
}

0 commit comments

Comments
 (0)