Skip to content

Commit 0b6cf3e

Browse files
authored
Merge pull request #3 from webgriffe/php8-support
Add PHP 8.0 support and remove PHP 7.1, 7.2 and 7.3 support
2 parents c35560f + 7207585 commit 0b6cf3e

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

.github/workflows/build.yml

+1-14
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
php: [ 7.1, 7.2, 7.3, 7.4 ]
15-
include:
16-
- php: 7.1
17-
composer: ":v1"
18-
composer-require-checker: ":2.0.0"
19-
- php: 7.2
20-
composer: ":v1"
21-
composer-require-checker: ":2.1.0"
22-
- php: 7.3
23-
composer: ":v1"
24-
composer-require-checker: ":2.1.0"
25-
- php: 7.4
26-
composer: ":v2"
27-
composer-require-checker: ""
14+
php: [ 7.4, 8.0 ]
2815

2916
env:
3017
ES_URL: http://127.0.0.1:9200

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "A non-blocking ElasticSearch client for PHP based on Amp.",
44
"license": "MIT",
55
"require": {
6-
"php": "~7.1.0|~7.2.0|~7.3.0|~7.4.0",
6+
"php": "~7.4.0|~8.0.0",
77
"ext-json": "*",
88
"amphp/artax": "^3.0",
99
"amphp/amp": "^2.1"
@@ -20,6 +20,6 @@
2020
},
2121
"require-dev": {
2222
"roave/security-advisories": "dev-master",
23-
"phpunit/phpunit": "^7.5"
23+
"phpunit/phpunit": "^9.5"
2424
}
2525
}

docker-compose.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.7'
22

33
services:
44
php:
5-
image: "php:7.2"
5+
image: "php:8.0"
66
volumes:
77
- "./:/app"
88
working_dir: "/app"
@@ -16,3 +16,5 @@ services:
1616
environment:
1717
- "discovery.type=${ES_DISCOVERY_TYPE:-single-node}"
1818
- "ES_JAVA_OPTS=${ES_JAVA_OPTS:--Xms512m -Xmx512m}"
19+
ports:
20+
- "9200:9200"

0 commit comments

Comments
 (0)