Skip to content

Commit aca44a1

Browse files
authored
fix: implicitly nullable parameter deprecation in PHP 8.4 (#165)
1 parent b59d1eb commit aca44a1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/test-and-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
timeout-minutes: 20
1818
strategy:
1919
matrix:
20-
php: [ '7.3', '7.4', '8.0', '8.1' ]
20+
php: [ '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
2121
dependencies:
2222
- "lowest"
2323
- "highest"

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ We welcome direct contributions to the php-http-client code base. Thank you!
1818

1919
##### Prerequisites #####
2020

21-
- PHP version 7.3, 7.4, 8.0, or 8.1
21+
- PHP version 7.3+
2222
- [Composer](https://getcomposer.org/)
2323

2424
##### Initial setup: #####

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ All updates to this library are documented in our [CHANGELOG](CHANGELOG.md).
2828

2929
## Prerequisites
3030

31-
- PHP version 7.3, 7.4, 8.0, or 8.1
31+
- PHP version 7.3+
3232

3333
## Install with Composer
3434

lib/Exception/InvalidRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class InvalidRequest extends \Exception
1212
public function __construct(
1313
$message = '',
1414
$code = 0,
15-
\Exception $previous = null
15+
?\Exception $previous = null
1616
) {
1717
$message = 'Could not send request to server. ' .
1818
'CURL error ' . $code . ': ' . $message;

0 commit comments

Comments
 (0)