Skip to content

Commit e59b05f

Browse files
authored
Bump minimal PHP version to 8.1 (#104)
1 parent a8c0f0f commit e59b05f

16 files changed

Lines changed: 52 additions & 51 deletions

.github/workflows/bc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
os: >-
3131
['ubuntu-latest']
3232
php: >-
33-
['8.0']
33+
['8.1']

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
os: >-
3232
['ubuntu-latest', 'windows-latest']
3333
php: >-
34-
['8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
34+
['8.1', '8.2', '8.3', '8.4', '8.5']

.github/workflows/composer-require-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
os: >-
3232
['ubuntu-latest']
3333
php: >-
34-
['8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
34+
['8.1', '8.2', '8.3', '8.4', '8.5']

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
os: >-
3030
['ubuntu-latest']
3131
php: >-
32-
['8.0', '8.1', '8.2', '8.3', '8.4']
32+
['8.1', '8.2', '8.3', '8.4']

.gitignore

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ composer.phar
2323
# Mac DS_Store Files
2424
.DS_Store
2525

26-
# phpunit itself is not needed
27-
phpunit.phar
28-
# local phpunit config
26+
# PhpUnit
27+
/phpunit.phar
2928
/phpunit.xml
30-
# phpunit cache
31-
.phpunit.result.cache
32-
33-
# Phan
34-
analysis.txt
35-
29+
/.phpunit.cache

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
## 3.2.2 under development
44

5-
- no changes in this release.
5+
- Chg #104: Bump minimal PHP version to 8.1 (@vjik)
6+
- Enh #104: Explicitly mark readonly properties (@vjik)
67

78
## 3.2.1 December 17, 2025
89

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ a [PSR-15](https://www.php-fig.org/psr/psr-15/) middleware to authenticate an id
1919

2020
## Requirements
2121

22-
- PHP 8.0 - 8.5.
22+
- PHP 8.1 - 8.5.
2323

2424
## Installation
2525

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828
],
2929
"require": {
30-
"php": "8.0 - 8.5",
30+
"php": "8.1 - 8.5",
3131
"psr/http-factory": "^1.0",
3232
"psr/http-message": "^1.0 || ^2.0",
3333
"psr/http-server-handler": "^1.0",
@@ -37,14 +37,14 @@
3737
},
3838
"require-dev": {
3939
"jetbrains/phpstorm-attributes": "^1.2",
40-
"maglnet/composer-require-checker": "^4.4",
40+
"maglnet/composer-require-checker": "^4.7.1",
4141
"nyholm/psr7": "^1.8.2",
42-
"phpunit/phpunit": "^9.6.22",
43-
"rector/rector": "^2.0.9",
44-
"roave/infection-static-analysis-plugin": "^1.25",
45-
"spatie/phpunit-watcher": "^1.23.6",
46-
"vimeo/psalm": "^4.30 || ^5.26.1 || ^6.10",
47-
"yiisoft/yii-debug": "dev-master || dev-php80"
42+
"phpunit/phpunit": "^10.5.60",
43+
"rector/rector": "^2.3.0",
44+
"roave/infection-static-analysis-plugin": "^1.35",
45+
"spatie/phpunit-watcher": "^1.24.4",
46+
"vimeo/psalm": "^5.26.1 || ^6.10",
47+
"yiisoft/yii-debug": "dev-master"
4848
},
4949
"autoload": {
5050
"psr-4": {

phpunit.xml.dist

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
54
bootstrap="vendor/autoload.php"
6-
colors="true"
7-
verbose="true"
5+
cacheDirectory=".phpunit.cache"
6+
requireCoverageMetadata="false"
7+
beStrictAboutCoverageMetadata="true"
8+
beStrictAboutOutputDuringTests="true"
9+
executionOrder="random"
810
failOnRisky="true"
911
failOnWarning="true"
10-
convertErrorsToExceptions="true"
11-
convertNoticesToExceptions="true"
12-
convertWarningsToExceptions="true"
12+
failOnDeprecation="true"
1313
stopOnFailure="false"
14-
executionOrder="random"
15-
resolveDependencies="true">
14+
colors="true"
15+
displayDetailsOnPhpunitDeprecations="true"
16+
>
1617
<php>
1718
<ini name="error_reporting" value="-1"/>
1819
</php>
@@ -23,9 +24,9 @@
2324
</testsuite>
2425
</testsuites>
2526

26-
<coverage>
27+
<source>
2728
<include>
28-
<directory>./src</directory>
29+
<directory suffix=".php">./src</directory>
2930
</include>
30-
</coverage>
31+
</source>
3132
</phpunit>

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__DIR__ . '/src',
1111
__DIR__ . '/tests',
1212
])
13-
->withPhpSets(php80: true)
13+
->withPhpSets(php81: true)
1414
->withRules([
1515
InlineConstructorDefaultToPropertyRector::class,
1616
]);

0 commit comments

Comments
 (0)