Skip to content

Commit 38a1ac6

Browse files
authored
Cleanup (#243)
1 parent cc5dfa5 commit 38a1ac6

File tree

7 files changed

+30
-37
lines changed

7 files changed

+30
-37
lines changed

.gitattributes

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@
1616
*.yml text
1717

1818
# Ensure those won't be messed up with
19+
*.phar binary
1920
*.png binary
2021
*.jpg binary
2122
*.gif binary
2223
*.ttf binary
2324

24-
# Ignore some meta files when creating an archive of this repository
25-
/.github export-ignore
26-
/.editorconfig export-ignore
27-
/.gitattributes export-ignore
28-
/.gitignore export-ignore
29-
/.phpunit-watcher.yml export-ignore
30-
/.styleci.yml export-ignore
31-
/infection.json.dist export-ignore
32-
/phpunit.xml.dist export-ignore
33-
/psalm.xml export-ignore
34-
/docs export-ignore
25+
# Exclude development and metadata files from distribution archive
26+
* export-ignore
27+
/src/ -export-ignore
28+
/src/** -export-ignore
29+
/tests/ -export-ignore
30+
/tests/** -export-ignore
31+
/composer.json -export-ignore
32+
/README.md -export-ignore
33+
/CHANGELOG.md -export-ignore
34+
/LICENSE.md -export-ignore
3535

3636
# Avoid merge conflicts in CHANGELOG
3737
# https://about.gitlab.com/2015/02/10/gitlab-reduced-merge-conflicts-by-90-percent-with-changelog-placeholders/

.github/workflows/mutation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
['ubuntu-latest']
2929
php: >-
3030
['8.5']
31-
min-covered-msi: 100
31+
infection-args: "--ignore-msi-with-no-mutations --min-covered-msi=100"
3232
secrets:
3333
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ Thumbs.db
2222
# composer itself is not needed
2323
composer.phar
2424

25-
# phpunit itself is not needed
26-
phpunit.phar
27-
# local phpunit config
25+
# PhpUnit
26+
/phpunit.phar
2827
/phpunit.xml
29-
# phpunit cache
30-
/.phpunit.cache/*
28+
/.phpunit.cache
3129

3230
# PHP CS Fixer
3331
/.php-cs-fixer.cache

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
},
3838
"require-dev": {
3939
"bamarni/composer-bin-plugin": "^1.8.3",
40-
"friendsofphp/php-cs-fixer": "^3.89.2",
40+
"friendsofphp/php-cs-fixer": "^3.91.3",
4141
"maglnet/composer-require-checker": "^4.7.1",
42-
"phpunit/phpunit": "^10.5.52",
43-
"rector/rector": "^2.2.8",
42+
"phpunit/phpunit": "^10.5.60",
43+
"rector/rector": "^2.2.14",
4444
"spatie/phpunit-watcher": "^1.24"
4545
},
4646
"autoload": {

rector.php

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,19 @@
66
use Rector\Config\RectorConfig;
77
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
88
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
9-
use Rector\Set\ValueObject\LevelSetList;
9+
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
1010

11-
return static function (RectorConfig $rectorConfig): void {
12-
$rectorConfig->paths([
11+
return RectorConfig::configure()
12+
->withPaths([
1313
__DIR__ . '/src',
1414
__DIR__ . '/tests',
15-
]);
16-
17-
// register a single rule
18-
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
19-
20-
// define sets of rules
21-
$rectorConfig->sets([
22-
LevelSetList::UP_TO_PHP_81,
23-
]);
24-
25-
$rectorConfig->skip([
15+
])
16+
->withPhpSets(php81: true)
17+
->withRules([
18+
InlineConstructorDefaultToPropertyRector::class,
19+
])
20+
->withSkip([
2621
ClosureToArrowFunctionRector::class,
2722
ReadOnlyPropertyRector::class,
23+
NullToStrictStringFuncCallArgRector::class,
2824
]);
29-
};

tools/infection/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require-dev": {
3-
"infection/infection": "^0.26 || ^0.31.9"
3+
"infection/infection": "^0.26.21 || ^0.31.9"
44
},
55
"config": {
66
"allow-plugins": {

tools/psalm/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"require-dev": {
3-
"vimeo/psalm": "^5.26.1 || ^6.10.3"
3+
"vimeo/psalm": "^6.14.1"
44
}
55
}

0 commit comments

Comments
 (0)