Skip to content

Commit de7a290

Browse files
authored
Merge pull request #312 from MGatner/retool
Update DevKit
2 parents 61617e7 + 429e8b6 commit de7a290

File tree

10 files changed

+18
-23
lines changed

10 files changed

+18
-23
lines changed

.github/workflows/deptrac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Set up PHP
3232
uses: shivammathur/setup-php@v2
3333
with:
34-
php-version: '8.0'
34+
php-version: '8.1'
3535
tools: phive
3636
extensions: intl, json, mbstring, xml
3737
coverage: none

.github/workflows/infection.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Set up PHP
3232
uses: shivammathur/setup-php@v2
3333
with:
34-
php-version: '8.0'
34+
php-version: '8.1'
3535
tools: infection, phpunit
3636
extensions: intl, json, mbstring, gd, xml, sqlite3
3737
coverage: xdebug

.github/workflows/phpcpd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Setup PHP
2828
uses: shivammathur/setup-php@v2
2929
with:
30-
php-version: '8.0'
30+
php-version: '8.1'
3131
tools: phpcpd
3232
extensions: dom, mbstring
3333
coverage: none

.github/workflows/phpcsfixer.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,9 @@ on:
1616

1717
jobs:
1818
build:
19-
name: PHP ${{ matrix.php-versions }} Coding Standards
19+
name: Coding Standards
2020
runs-on: ubuntu-latest
2121
if: "!contains(github.event.head_commit.message, '[ci skip]')"
22-
strategy:
23-
fail-fast: false
24-
matrix:
25-
php-versions: ['7.4', '8.0', '8.1']
2622

2723
steps:
2824
- name: Checkout
@@ -31,7 +27,7 @@ jobs:
3127
- name: Set up PHP
3228
uses: shivammathur/setup-php@v2
3329
with:
34-
php-version: ${{ matrix.php-versions }}
30+
php-version: '8.1'
3531
extensions: json, tokenizer
3632
coverage: none
3733
env:

.github/workflows/psalm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup PHP
3232
uses: shivammathur/setup-php@v2
3333
with:
34-
php-version: '8.0'
34+
php-version: '8.1'
3535
tools: phpstan, phpunit
3636
extensions: intl, json, mbstring, xml
3737
coverage: none

.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ jobs:
6363
6464
- name: Analyze for refactoring
6565
run: |
66-
composer global require --dev rector/rector:^0.12.16
66+
composer global require --dev rector/rector:^0.14
6767
rector process --dry-run --no-progress-bar

composer-unused.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
use ComposerUnused\ComposerUnused\Configuration\PatternFilter;
88
use Webmozart\Glob\Glob;
99

10-
return static function (Configuration $config): Configuration {
11-
return $config
12-
// ->addNamedFilter(NamedFilter::fromString('symfony/config'))
13-
// ->addPatternFilter(PatternFilter::fromString('/symfony-.*/'))
14-
->setAdditionalFilesFor('codeigniter4/framework', [
15-
...Glob::glob(__DIR__ . '/vendor/codeigniter4/framework/system/Helpers/*.php'),
16-
]);
17-
};
10+
return static fn (Configuration $config): Configuration => $config
11+
// ->addNamedFilter(NamedFilter::fromString('symfony/config'))
12+
// ->addPatternFilter(PatternFilter::fromString('/symfony-.*/'))
13+
->setAdditionalFilesFor('codeigniter4/framework', [
14+
...Glob::glob(__DIR__ . '/vendor/codeigniter4/framework/system/Helpers/*.php'),
15+
]);

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,16 @@
5454
"scripts": {
5555
"analyze": [
5656
"phpstan analyze",
57-
"psalm"
57+
"psalm",
58+
"rector process --dry-run"
5859
],
5960
"ci": [
6061
"Composer\\Config::disableProcessTimeout",
6162
"@deduplicate",
6263
"@analyze",
64+
"@composer normalize --dry-run",
6365
"@test",
6466
"@inspect",
65-
"rector process",
6667
"@style"
6768
],
6869
"deduplicate": "phpcpd app/ src/",

deptrac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ parameters:
114114
Service:
115115
- Config
116116
- Vendor Config
117-
117+
118118
# Ignore anything in the Vendor layers
119119
Vendor Model:
120120
- Config

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
use Rector\Config\RectorConfig;
43
use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector;
54
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
65
use Rector\CodeQuality\Rector\For_\ForToForeachRector;
@@ -18,6 +17,7 @@
1817
use Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector;
1918
use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
2019
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
20+
use Rector\Config\RectorConfig;
2121
use Rector\Core\ValueObject\PhpVersion;
2222
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
2323
use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector;

0 commit comments

Comments
 (0)