Skip to content

Commit 512f731

Browse files
authored
Drop PHP support <8.0 (#2131)
This PR drops support for PHP <8.0 as discussed in #1961
1 parent 2823702 commit 512f731

File tree

5 files changed

+8
-29
lines changed

5 files changed

+8
-29
lines changed

.github/workflows/continuous-integration.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: 'Setup PHP'
1212
uses: 'shivammathur/setup-php@v2'
1313
with:
14-
php-version: '7.4'
14+
php-version: '8.0'
1515
coverage: 'none'
1616
extensions: 'json, mbstring, tokenizer'
1717
tools: 'composer-normalize:2.28.0, php-cs-fixer:3.9.5'
@@ -31,9 +31,6 @@ jobs:
3131
strategy:
3232
matrix:
3333
php:
34-
- '7.2'
35-
- '7.3'
36-
- '7.4'
3734
- '8.0'
3835
- '8.1'
3936
dependencies:
@@ -43,7 +40,7 @@ jobs:
4340
include:
4441
# Test with the lowest set of dependencies
4542
- dependencies: 'lowest'
46-
php: '7.2'
43+
php: '8.0'
4744
elasticsearch: '7.15.2'
4845
fail-fast: false
4946
steps:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased](https://github.com/ruflin/Elastica/compare/7.3.0...master)
88
### Backward Compatibility Breaks
9+
* Dropped support for PHP <8.0 [#2131](https://github.com/ruflin/Elastica/pull/2131)
910
### Added
1011
### Changed
1112
### Deprecated

composer.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,19 @@
1515
],
1616
"homepage": "http://elastica.io/",
1717
"require": {
18-
"php": "^7.2 || ^8.0",
18+
"php": "~8.0.0 || ~8.1.0",
1919
"ext-json": "*",
2020
"elasticsearch/elasticsearch": "^7.10",
2121
"nyholm/dsn": "^2.0.0",
2222
"psr/log": "^1.0 || ^2.0 || ^3.0",
23-
"symfony/deprecation-contracts": "^2.2 || ^3.0",
24-
"symfony/polyfill-php73": "^1.19"
23+
"symfony/deprecation-contracts": "^3.0"
2524
},
2625
"require-dev": {
2726
"aws/aws-sdk-php": "^3.155",
28-
"guzzlehttp/guzzle": "^6.3 || ^7.2",
27+
"guzzlehttp/guzzle": "^7.2",
2928
"phpstan/phpstan": "^1.5",
3029
"phpstan/phpstan-phpunit": "^1.1",
31-
"phpunit/phpunit": "^8.5.8 || ^9.4",
30+
"phpunit/phpunit": "^9.5",
3231
"symfony/phpunit-bridge": "^6.0"
3332
},
3433
"suggest": {

docker/php/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.2-fpm-alpine
1+
FROM php:8.0-fpm-alpine
22

33
COPY --from=composer /usr/bin/composer /usr/bin/composer
44

src/Query/Match.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)