From edd48ee635d5f9ddcb36fccc35ccf9695563e66d Mon Sep 17 00:00:00 2001 From: Theodore Brown Date: Mon, 17 Feb 2025 12:02:12 -0600 Subject: [PATCH 1/3] Fix implicitly nullable parameter deprecation in PHP 8.4 --- lib/Exception/InvalidRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Exception/InvalidRequest.php b/lib/Exception/InvalidRequest.php index 21ae2ac..819172d 100644 --- a/lib/Exception/InvalidRequest.php +++ b/lib/Exception/InvalidRequest.php @@ -12,7 +12,7 @@ class InvalidRequest extends \Exception public function __construct( $message = '', $code = 0, - \Exception $previous = null + ?\Exception $previous = null ) { $message = 'Could not send request to server. ' . 'CURL error ' . $code . ': ' . $message; From 466ab445d71ae322b7e03cb9c7fddc7b4f658fe8 Mon Sep 17 00:00:00 2001 From: Theodore Brown Date: Mon, 17 Feb 2025 12:10:24 -0600 Subject: [PATCH 2/3] Test on PHP 8.2, 8.3, and 8.4 --- .github/workflows/test-and-deploy.yml | 2 +- CONTRIBUTING.md | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 1f903e5..489b143 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -17,7 +17,7 @@ jobs: timeout-minutes: 20 strategy: matrix: - php: [ '7.3', '7.4', '8.0', '8.1' ] + php: [ '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] dependencies: - "lowest" - "highest" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b183415..4218850 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,7 +18,7 @@ We welcome direct contributions to the php-http-client code base. Thank you! ##### Prerequisites ##### -- PHP version 7.3, 7.4, 8.0, or 8.1 +- PHP version 7.3+ - [Composer](https://getcomposer.org/) ##### Initial setup: ##### diff --git a/README.md b/README.md index 7aea5d1..1880490 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ All updates to this library are documented in our [CHANGELOG](CHANGELOG.md). ## Prerequisites -- PHP version 7.3, 7.4, 8.0, or 8.1 +- PHP version 7.3+ ## Install with Composer From 40bef86beea716e42eb27905ac80313306356e9b Mon Sep 17 00:00:00 2001 From: Theodore Brown Date: Mon, 17 Feb 2025 12:14:52 -0600 Subject: [PATCH 3/3] Fix license year test --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 3154774..126ceb1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (C) 2023, Twilio SendGrid, Inc. +Copyright (C) 2025, Twilio SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in