Skip to content

Commit 536a9a6

Browse files
committed
add PHP8 support
1 parent 6597424 commit 536a9a6

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

.travis.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@ cache:
1212

1313
matrix:
1414
include:
15-
- php: 5.3
16-
- php: 5.4
17-
- php: 5.5
18-
- php: 5.6
19-
- php: hhvm
20-
- php: nightly
21-
- php: 7.0
15+
- php: 7.3
2216
env: COVERAGE=yes
23-
- php: 7.0
17+
- php: 7.3
2418
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
25-
- php: 8.0
19+
- php: 7.4
20+
env: COVERAGE=yes
21+
- php: 7.4
2622
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
23+
# - php: 8.0
24+
# env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
2725
allow_failures:
2826
- php: hhvm
2927
- php: nightly

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
Changelog
22
=========
33

4-
* 1.3.1 (2020-03-04)
5-
6-
* fixed PHP 8 compatibility
4+
* 2.0.0 (@release_date@)
5+
6+
* dropped support for PHP ^5.2
7+
* dropped support for PHP 7.0
8+
* dropped support for PHP 7.1
9+
* dropped support for PHP 7.2
10+
* upgraded dependencies
11+
* added PHP 8 compatibility
712

813
* 1.3.0 (@release_date@)
914

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Webmozart JSON
66
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/webmozart/json/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/webmozart/json/?branch=master)
77
[![Latest Stable Version](https://poser.pugx.org/webmozart/json/v/stable.svg)](https://packagist.org/packages/webmozart/json)
88
[![Total Downloads](https://poser.pugx.org/webmozart/json/downloads.svg)](https://packagist.org/packages/webmozart/json)
9-
[![Dependency Status](https://www.versioneye.com/php/webmozart:json/1.2.2/badge.svg)](https://www.versioneye.com/php/webmozart:json/1.2.2)
9+
[![Dependency Status](https://www.versioneye.com/php/webmozart:json/2.0.0/badge.svg)](https://www.versioneye.com/php/webmozart:json/2.0.0)
1010

11-
Latest release: [1.2.2](https://packagist.org/packages/webmozart/json#1.2.2)
11+
Latest release: [2.0.0](https://packagist.org/packages/webmozart/json#2.0.0)
1212

1313
A robust wrapper for `json_encode()`/`json_decode()` that normalizes their
1414
behavior across PHP versions, throws meaningful exceptions and supports schema

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
}
1010
],
1111
"require": {
12-
"php": "^5.3.3|^7.0|^8.0",
12+
"php": ">=7.3",
1313
"justinrainbow/json-schema": "^2.0",
14-
"seld/jsonlint": "^1.0",
15-
"webmozart/assert": "^1.0",
14+
"seld/jsonlint": "^1.8",
15+
"webmozart/assert": "^1.9",
1616
"webmozart/path-util": "^2.3"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "^4.6",
20-
"sebastian/version": "^1.0.1",
21-
"symfony/filesystem": "^2.5"
19+
"phpunit/phpunit": "^9.5",
20+
"sebastian/version": "^3.0.2",
21+
"symfony/filesystem": "^5.2"
2222
},
2323
"autoload": {
2424
"psr-4": {

0 commit comments

Comments
 (0)