Skip to content

Commit

Permalink
Bump min PHP version to 7.4 (#3205)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Mar 31, 2024
1 parent fcac7ba commit 2fe9fd4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
php-version: '7.4'
ini-values: error_reporting=E_ALL
coverage: none
extensions: mbstring, intl
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
strategy:
max-parallel: 10
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
psr7: ['^1.9.1', '^2.5.1']
include:
- php: '8.0'
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
strategy:
max-parallel: 10
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
php: ['7.4', '8.0', '8.1', '8.2', '8.3']

steps:
- name: Set up PHP
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,19 @@ composer require guzzlehttp/guzzle
| 5.x | EOL (2019-10-31) | `guzzlehttp/guzzle` | `GuzzleHttp` | [v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No | >=5.4,<7.4 |
| 6.x | EOL (2023-10-31) | `guzzlehttp/guzzle` | `GuzzleHttp` | [v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes | >=5.5,<8.0 |
| 7.x | Latest | `guzzlehttp/guzzle` | `GuzzleHttp` | [v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes | >=7.2.5,<8.4 |
| 8.x | Experimental | `guzzlehttp/guzzle` | `GuzzleHttp` | [v8][guzzle-8-repo] | [v8][guzzle-8-docs] | Yes | >=7.4,<8.4 |

[guzzle-3-repo]: https://github.com/guzzle/guzzle3
[guzzle-4-repo]: https://github.com/guzzle/guzzle/tree/4.x
[guzzle-5-repo]: https://github.com/guzzle/guzzle/tree/5.3
[guzzle-6-repo]: https://github.com/guzzle/guzzle/tree/6.5
[guzzle-7-repo]: https://github.com/guzzle/guzzle
[guzzle-8-repo]: https://github.com/guzzle/guzzle
[guzzle-3-docs]: https://guzzle3.readthedocs.io/
[guzzle-5-docs]: https://docs.guzzlephp.org/en/5.3/
[guzzle-6-docs]: https://docs.guzzlephp.org/en/6.5/
[guzzle-7-docs]: https://docs.guzzlephp.org/en/latest/
[guzzle-8-docs]: https://docs.guzzlephp.org/en/latest/


## Security
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"type": "zip"
},
"require": {
"php": "^7.2.5 || ^8.0",
"php": "^7.4 || ^8.0",
"phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.11",
"php-http/message": "^1.0 || ^2.0",
"guzzlehttp/psr7": "^1.7 || ^2.0",
Expand All @@ -79,7 +79,7 @@
}
],
"require": {
"php": "^7.2.5 || ^8.0",
"php": "^7.4 || ^8.0",
"ext-json": "*",
"guzzlehttp/promises": "^1.5.3 || ^2.0.1",
"guzzlehttp/psr7": "^1.9.1 || ^2.5.1",
Expand Down
8 changes: 4 additions & 4 deletions docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Overview
Requirements
============

#. PHP 7.2.5
#. PHP 7.4+
#. To use the PHP stream handler, ``allow_url_fopen`` must be enabled in your
system's php.ini.
#. To use the cURL handler, you must have a recent version of cURL >= 7.19.4
Expand Down Expand Up @@ -121,9 +121,9 @@ Guidelines
1. Guzzle utilizes PSR-1, PSR-2, PSR-4, and PSR-7.
2. Guzzle is meant to be lean and fast with very few dependencies. This means
that not every feature request will be accepted.
3. Guzzle has a minimum PHP version requirement of PHP 7.2. Pull requests must
not require a PHP version greater than PHP 7.2 unless the feature is only
utilized conditionally and the file can be parsed by PHP 7.2.
3. Guzzle has a minimum PHP version requirement of PHP 7.4. Pull requests must
not require a PHP version greater than PHP 7.4 unless the feature is only
utilized conditionally and the file can be parsed by PHP 7.4.
4. All pull requests must include unit tests to ensure the change works as
expected and to prevent regressions.

Expand Down
2 changes: 1 addition & 1 deletion docs/request-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ idn_conversion
:Types:
- bool
- int
:Default: ``true`` if ``intl`` extension is available (and ICU library is 4.6+ for PHP 7.2+), ``false`` otherwise
:Default: ``true`` if ``intl`` extension is available (and ICU library is 4.6+), ``false`` otherwise
:Constant: ``GuzzleHttp\RequestOptions::IDN_CONVERSION``

.. code-block:: php
Expand Down

0 comments on commit 2fe9fd4

Please sign in to comment.