Skip to content

Commit f310b67

Browse files
committed
feat: downgrade to PHP 8.1
1 parent bda354a commit f310b67

File tree

3 files changed

+407
-563
lines changed

3 files changed

+407
-563
lines changed

.github/workflows/refactoring.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,13 @@ jobs:
4040
ini-values: error_reporting=E_ALL
4141
coverage: none
4242

43-
- name: 🛠️ Setup problem matchers
44-
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
45-
4643
- name: 🤖 Validate composer.json and composer.lock
4744
run: composer validate --ansi --strict
4845

49-
- name: 🔍 Get composer cache directory
50-
uses: cycle/gh-actions/actions/composer/get-cache-directory@v4.0.0
51-
52-
- name: ♻️ Restore cached dependencies installed with composer
53-
uses: actions/cache@v4.0.2
54-
with:
55-
path: ${{ env.COMPOSER_CACHE_DIR }}
56-
key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}
57-
restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
58-
59-
- name: 📥 Install "${{ matrix.dependencies }}" dependencies
60-
uses: cycle/gh-actions/actions/composer/install@v4.0.0
46+
- name: 📥 Install dependencies with composer
47+
uses: ramsey/composer-install@v3
6148
with:
62-
dependencies: ${{ matrix.dependencies }}
49+
dependency-versions: "${{ matrix.dependencies }}"
6350

6451
- name: ⚙️ Run automated refactoring with rector/rector
6552
run: composer refactor:ci

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636
],
3737
"require": {
38-
"php": ">=8.2",
38+
"php": ">=8.1",
3939
"cycle/database": "^2.11",
4040
"cycle/orm": "^2.7",
4141
"psr/container": "^2.0"
@@ -50,7 +50,7 @@
5050
"phpunit/phpunit": "^10.5",
5151
"psalm/plugin-phpunit": "~0.19.0",
5252
"rector/rector": "^1.0",
53-
"roave/infection-static-analysis-plugin": "^1.35",
53+
"infection/infection": ">=0.29",
5454
"spiral/boot": "^3.12",
5555
"spiral/code-style": "^2.3",
5656
"spiral/cycle-bridge": "^2.9",
@@ -88,7 +88,7 @@
8888
"abandoned": "report"
8989
},
9090
"platform": {
91-
"php": "8.2.17"
91+
"php": "8.1.17"
9292
},
9393
"sort-packages": true
9494
},
@@ -117,12 +117,12 @@
117117
"infect": [
118118
"Composer\\Config::disableProcessTimeout",
119119
"@putenv XDEBUG_MODE=coverage",
120-
"roave-infection-static-analysis-plugin"
120+
"infection"
121121
],
122122
"infect:ci": [
123123
"Composer\\Config::disableProcessTimeout",
124124
"@putenv XDEBUG_MODE=coverage",
125-
"roave-infection-static-analysis-plugin --threads=2 --ansi --logger-github --ignore-msi-with-no-mutations --only-covered"
125+
"infection --ansi --logger-github --ignore-msi-with-no-mutations --only-covered"
126126
],
127127
"psalm": "psalm --show-info=true",
128128
"psalm:baseline": "psalm --set-baseline=psalm-baseline.xml",
@@ -139,7 +139,7 @@
139139
],
140140
"test:cc": [
141141
"@putenv XDEBUG_MODE=coverage",
142-
"phpunit --coverage --coverage-clover=runtime/phpunit/logs/clover.xml --color=always"
142+
"phpunit --coverage-clover=runtime/phpunit/logs/clover.xml --color=always"
143143
],
144144
"test:mysql": [
145145
"@putenv XDEBUG_MODE=coverage",

0 commit comments

Comments
 (0)