Skip to content

Commit b5c1568

Browse files
authored
Bump PHP to 8.1 (#138)
1 parent cc8b2cc commit b5c1568

21 files changed

+78
-114
lines changed

.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']
34+
['8.1', '8.2', '8.3']

.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']
34+
['8.1', '8.2', '8.3']

.github/workflows/static.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,3 @@ jobs:
3030
['ubuntu-latest']
3131
php: >-
3232
['8.1', '8.2', '8.3']
33-
psalm80:
34-
uses: yiisoft/actions/.github/workflows/psalm.yml@master
35-
with:
36-
psalm-config: psalm80.xml
37-
os: >-
38-
['ubuntu-latest']
39-
php: >-
40-
['8.0']

.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ Thumbs.db
1616
composer.phar
1717
composer.lock
1818

19-
# phpunit itself is not needed
20-
phpunit.phar
21-
# local phpunit config
19+
# PHPUnit
20+
/phpunit.phar
2221
/phpunit.xml
23-
# phpunit cache
24-
.phpunit.result.cache
22+
/.phpunit.cache

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
class (@olegbaturin)
99
- Chg #137: Add separate parameters for each of `HtmlRenderer` settings in constructor. Mark `$settings` parameter as
1010
deprecated (@vjik)
11+
- Enh #138: Raise the minimum PHP version to 8.1 and minor refactoring (@vjik)
1112

1213
## 3.3.0 July 11, 2024
1314

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ The package provides advanced error handling. The features are:
2929

3030
## Requirements
3131

32-
- PHP 8.0 or higher.
32+
- PHP 8.1 or higher.
3333
- `DOM` PHP extension.
34-
- `JSON` PHP extension.
3534
- `mbstring` PHP extension.
3635

3736
## Installation

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@
3131
}
3232
],
3333
"require": {
34-
"php": "^8.0",
34+
"php": "^8.1",
3535
"ext-dom": "*",
36-
"ext-json": "*",
3736
"ext-mbstring": "*",
3837
"alexkart/curl-builder": "^1.0",
3938
"cebe/markdown": "^1.2",
@@ -48,16 +47,16 @@
4847
"yiisoft/injector": "^1.0"
4948
},
5049
"require-dev": {
51-
"httpsoft/http-message": "^1.0.9",
52-
"maglnet/composer-require-checker": "^4.4",
53-
"phpunit/phpunit": "^9.5",
50+
"httpsoft/http-message": "^1.1.6",
51+
"maglnet/composer-require-checker": "^4.7.1",
52+
"phpunit/phpunit": "^10.5.44",
5453
"psr/event-dispatcher": "^1.0",
55-
"rector/rector": "^2.0",
56-
"roave/infection-static-analysis-plugin": "^1.16",
57-
"spatie/phpunit-watcher": "^1.23",
58-
"vimeo/psalm": "^4.30|^5.25",
59-
"yiisoft/di": "^1.1",
60-
"yiisoft/test-support": "^3.0"
54+
"rector/rector": "^2.0.7",
55+
"roave/infection-static-analysis-plugin": "^1.35",
56+
"spatie/phpunit-watcher": "^1.24",
57+
"vimeo/psalm": "^5.26.1|^6",
58+
"yiisoft/di": "^1.3",
59+
"yiisoft/test-support": "^3.0.1"
6160
},
6261
"autoload": {
6362
"psr-4": {
@@ -79,6 +78,7 @@
7978
},
8079
"config": {
8180
"sort-packages": true,
81+
"bump-after-update": "dev",
8282
"allow-plugins": {
8383
"infection/extension-installer": true,
8484
"composer/package-versions-deprecated": true

phpunit.xml.dist

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<phpunit bootstrap="vendor/autoload.php"
4-
colors="true"
5-
verbose="true"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
cacheDirectory=".phpunit.cache"
6+
requireCoverageMetadata="false"
7+
beStrictAboutCoverageMetadata="true"
8+
beStrictAboutOutputDuringTests="true"
9+
executionOrder="random"
610
failOnRisky="true"
711
failOnWarning="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
1112
stopOnFailure="false"
12-
executionOrder="random"
13-
resolveDependencies="true"
13+
colors="true"
14+
displayDetailsOnPhpunitDeprecations="true"
1415
>
1516
<php>
16-
<ini name="error_reporting" value="-1"/>
17+
<ini name="error_reporting" value="-1" />
1718
</php>
1819

1920
<testsuites>
@@ -22,9 +23,9 @@
2223
</testsuite>
2324
</testsuites>
2425

25-
<coverage>
26+
<source>
2627
<include>
27-
<directory>./src</directory>
28+
<directory suffix=".php">./src</directory>
2829
</include>
29-
</coverage>
30+
</source>
3031
</phpunit>

psalm80.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)