Skip to content

Commit ac45cfe

Browse files
committed
Add support for PHP 8.0
1 parent 29cfdad commit ac45cfe

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,17 @@ jobs:
6666
- name: PHPCS check
6767
run: vendor/bin/phpcs
6868

69-
- name: Psalm static analysis on PHP 7.4
70-
if: matrix.php-version == '7.4'
69+
- name: Psalm static analysis
7170
run: vendor/bin/psalm --no-progress
7271

73-
- name: PHPUnit run on PHP 7.4
72+
- name: PHPUnit run with coverage on PHP 7.4
7473
if: matrix.php-version == '7.4'
7574
run: vendor/bin/phpunit --coverage-clover=coverage.clover
7675

76+
- name: PHPUnit run without coverage on PHP 8.0
77+
if: matrix.php-version == '8.0'
78+
run: vendor/bin/phpunit
79+
7780
- name: Code coverage on PHP 7.4
7881
if: matrix.php-version == '7.4'
7982
run: |

composer.json

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "httpsoft/http-request",
3-
"description": "PSR-7 implementation for Request and ServerRequest",
4-
"keywords": ["php", "http", "http-request", "http-server-request", "psr-7", "http-message"],
2+
"name": "httpsoft/http-server-request",
3+
"description": "Functionality for creating a PSR-7 ServerRequest",
4+
"keywords": ["php", "http", "http-server-request", "psr-7", "http-message"],
55
"homepage": "https://httpsoft.org/",
66
"type": "library",
77
"license": "MIT",
@@ -14,29 +14,27 @@
1414
}
1515
],
1616
"support": {
17-
"issues": "https://github.com/httpsoft/http-request/issues",
18-
"source": "https://github.com/httpsoft/http-request",
19-
"docs": "https://httpsoft.org/docs/request"
17+
"issues": "https://github.com/httpsoft/http-server-request/issues",
18+
"source": "https://github.com/httpsoft/http-server-request",
19+
"docs": "https://httpsoft.org/docs/server-request"
2020
},
2121
"require": {
22-
"php": "^7.4",
23-
"httpsoft/http-stream": "^1.0",
24-
"httpsoft/http-uploaded-file": "^1.0",
25-
"httpsoft/http-uri": "^1.0"
22+
"php": "^7.4|^8.0",
23+
"httpsoft/http-message": "^1.0"
2624
},
2725
"require-dev": {
28-
"phpunit/phpunit": "^9.1",
26+
"phpunit/phpunit": "^9.3",
2927
"squizlabs/php_codesniffer": "^3.5",
30-
"vimeo/psalm": "^3.12"
28+
"vimeo/psalm": "^3.14"
3129
},
3230
"autoload": {
3331
"psr-4": {
34-
"HttpSoft\\Request\\": "src/"
32+
"HttpSoft\\ServerRequest\\": "src/"
3533
}
3634
},
3735
"autoload-dev": {
3836
"psr-4": {
39-
"HttpSoft\\Tests\\Request\\": "tests/"
37+
"HttpSoft\\Tests\\ServerRequest\\": "tests/"
4038
}
4139
},
4240
"scripts": {

0 commit comments

Comments
 (0)