Skip to content

Commit 2a58bde

Browse files
committed
up: update require min php version to 8.1
1 parent 9c98cf2 commit 2a58bde

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
php: [8.0, 8.1, 8.2] #
19+
php: [8.3, 8.1, 8.2, 8.4] #
2020
# os: [ubuntu-latest] # macOS-latest, windows-latest,
2121
# include: # will not testing on php 7.2
2222
# - os: 'ubuntu-latest'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# HTTP Client
22

33
[![License](https://img.shields.io/packagist/l/phppkg/http-client.svg?style=flat-square)](LICENSE)
4-
[![Php Version](https://img.shields.io/badge/php-%3E=8.0-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/phppkg/http-client)
4+
[![Php Version](https://img.shields.io/packagist/php-v/phppkg/http-client?maxAge=2592000)](https://packagist.org/packages/phppkg/http-client)
55
[![Latest Stable Version](http://img.shields.io/packagist/v/phppkg/http-client.svg)](https://packagist.org/packages/phppkg/http-client)
66
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/phppkg/http-client)](https://github.com/phppkg/http-client)
77
[![Github Actions Status](https://github.com/phppkg/http-client/workflows/Unit-tests/badge.svg)](https://github.com/phppkg/http-client/actions)

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# HTTP Client
22

33
[![License](https://img.shields.io/packagist/l/phppkg/http-client.svg?style=flat-square)](LICENSE)
4-
[![Php Version](https://img.shields.io/badge/php-%3E=8.0-brightgreen.svg?maxAge=2592000)](https://packagist.org/packages/phppkg/http-client)
4+
[![Php Version](https://img.shields.io/packagist/php-v/phppkg/http-client?maxAge=2592000)](https://packagist.org/packages/phppkg/http-client)
55
[![Latest Stable Version](http://img.shields.io/packagist/v/phppkg/http-client.svg)](https://packagist.org/packages/phppkg/http-client)
66
[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/phppkg/http-client)](https://github.com/phppkg/http-client)
77
[![Github Actions Status](https://github.com/phppkg/http-client/workflows/Unit-tests/badge.svg)](https://github.com/phppkg/http-client/actions)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
],
2121
"require": {
22-
"php": ">8.0.0",
22+
"php": ">8.1",
2323
"psr/http-client": "^1.0",
2424
"toolkit/stdlib": "^2.0"
2525
},

src/Curl/CurlMulti.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function append(string $url, mixed $data = null, array $headers = [], arr
177177
*
178178
* @return bool|array
179179
*/
180-
public function execute(CurlMultiHandle $mh = null): bool|array
180+
public function execute(?CurlMultiHandle $mh = null): bool|array
181181
{
182182
if (!($mh = $mh ?: $this->mh)) {
183183
return false;

src/Exception/NetworkException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class NetworkException extends RuntimeException implements NetworkExceptionInter
3737
public function __construct(
3838
string $message = '',
3939
int $code = 0,
40-
Throwable $previous = null,
41-
RequestInterface $request = null
40+
?Throwable $previous = null,
41+
?RequestInterface $request = null
4242
) {
4343
$this->request = $request;
4444
parent::__construct($message, $code, $previous);

src/Exception/RequestException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class RequestException extends RuntimeException implements RequestExceptionInter
3737
public function __construct(
3838
string $message = '',
3939
int $code = 0,
40-
Throwable $previous = null,
41-
RequestInterface $request = null
40+
?Throwable $previous = null,
41+
?RequestInterface $request = null
4242
) {
4343
$this->request = $request;
4444
parent::__construct($message, $code, $previous);

test/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license MIT
88
*/
99

10-
error_reporting(E_ALL | E_STRICT);
10+
error_reporting(E_ALL);
1111
date_default_timezone_set('Asia/Shanghai');
1212

1313
$namespaces = [

0 commit comments

Comments
 (0)