Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55d7418

Browse files
authored
Remove PHP 8.1 Support (#6848)
* Remove PHP 8.1 Support* Update codebase to PHP 8.2* Try on Windows
1 parentb4c2bcd commit55d7418

File tree

60 files changed

+131
-148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+131
-148
lines changed

‎.github/workflows/build.yml‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
jobs:
1414
phpcs:
1515
name:Code style
16-
runs-on:'ubuntu-latest'
16+
runs-on:ubuntu-latest
1717
steps:
1818
-name:Checkout
1919
uses:actions/checkout@v3
@@ -46,7 +46,7 @@ jobs:
4646
fail-fast:false
4747
matrix:
4848
os:[ubuntu-latest]
49-
php:['8.1', '8.2', '8.3', '8.4']
49+
php:['8.2', '8.3', '8.4']
5050
mode:['stable', 'experimental']
5151
exclude:
5252
-php:'8.2'
@@ -90,15 +90,15 @@ jobs:
9090
if:matrix.mode == 'stable'
9191
run:composer update --no-interaction --no-progress --optimize-autoloader --ansi
9292

93-
-name:Composer install lowest versions of dependencies on PHP 8.1 in experimental mode
94-
if:matrix.php == '8.1' && matrix.mode == 'experimental'
93+
-name:Composer install lowest versions of dependencies on PHP 8.2 in experimental mode
94+
if:matrix.php == '8.2' && matrix.mode == 'experimental'
9595
run:composer update --prefer-lowest --no-interaction --no-progress --optimize-autoloader --ansi
9696

9797
-name:Test that failing test really fails
9898
run:if php codecept run -c tests/data/claypit/ scenario FailedCept -vvv; then echo "Test hasn't failed"; false; fi;
9999

100-
# - name: Run tests without code coverage on PHP 8.1
101-
# if: matrix.php == '8.1'
100+
# - name: Run tests without code coverage on PHP 8.2
101+
# if: matrix.php == '8.2'
102102
# run: |
103103
# php -S 127.0.0.1:8008 -t tests/data/app >/dev/null 2>&1 &
104104
# php codecept build
@@ -140,7 +140,7 @@ jobs:
140140
fail-fast:false
141141
matrix:
142142
os:[windows-latest]
143-
php:['8.1', '8.2', '8.3', '8.4']
143+
php:['8.2', '8.3', '8.4']
144144

145145
steps:
146146
-name:Checkout
@@ -155,7 +155,7 @@ jobs:
155155
tools:composer:v2
156156

157157
-name:Determine composer cache directory
158-
run:echo "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
158+
run:echo "COMPOSER_CACHE_DIR=~\\AppData\\Local\\Composer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
159159

160160
-name:Cache dependencies installed with composer
161161
uses:actions/cache@v3
@@ -171,12 +171,11 @@ jobs:
171171
-name:Validate composer.json
172172
run:composer validate
173173

174-
-name:Composer install
174+
-name:Install dependencies
175175
run:composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
176176

177-
-name:Run tests cli
178-
if:matrix.php != '8.2'
177+
-name:Run CLI tests
179178
run:php codecept run cli --skip-group coverage
180179

181-
-name:Runtestsunit
180+
-name:Run unit tests
182181
run:php codecept run unit -g core -g appveyor

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG flavor=bullseye
22

3-
FROM php:8.1-cli-${flavor}
3+
FROM php:8.2-cli-${flavor}
44

55
LABEL maintainer="Tobias Munk <tobias@diemeisterei.de>"
66

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"minimum-stability":"RC",
1616

1717
"require": {
18-
"php":"^8.1",
18+
"php":"^8.2",
1919
"ext-curl":"*",
2020
"ext-json":"*",
2121
"ext-mbstring":"*",

‎src/Codeception/Attribute/After.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
useAttribute;
88

99
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
10-
finalclass After
10+
finalreadonlyclass After
1111
{
1212
publicfunction__construct(string ...$methodNames)
1313
{

‎src/Codeception/Attribute/Before.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
useAttribute;
88

99
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
10-
finalclass Before
10+
finalreadonlyclass Before
1111
{
1212
publicfunction__construct(string ...$methodNames)
1313
{

‎src/Codeception/Attribute/DataProvider.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
useAttribute;
88

99
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
10-
finalclass DataProvider
10+
finalreadonlyclass DataProvider
1111
{
1212
publicfunction__construct(string$methodName)
1313
{

‎src/Codeception/Attribute/Depends.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
useAttribute;
88

99
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
10-
finalclass Depends
10+
finalreadonlyclass Depends
1111
{
1212
publicfunction__construct(string ...$testNames)
1313
{

‎src/Codeception/Attribute/Env.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
useAttribute;
88

99
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
10-
finalclass Env
10+
finalreadonlyclass Env
1111
{
1212
publicfunction__construct(string ...$envValues)
1313
{

‎src/Codeception/Attribute/Examples.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
useAttribute;
88

99
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
10-
finalclass Examples
10+
finalreadonlyclass Examples
1111
{
1212
publicfunction__construct(mixed ...$values)
1313
{

‎src/Codeception/Attribute/Given.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
useAttribute;
88

99
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
10-
finalclass Given
10+
finalreadonlyclass Given
1111
{
1212
publicfunction__construct(string$description)
1313
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp