Skip to content

Commit e1c1854

Browse files
authored
release: 1.2.0
2 parents 7d86445 + 1e2c908 commit e1c1854

File tree

8 files changed

+56
-60
lines changed

8 files changed

+56
-60
lines changed

.github/lang/es-ES/README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![CI](https://github.com/josantonius/php-json/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/josantonius/php-json/actions/workflows/ci.yml)
77
[![PSR2](https://img.shields.io/badge/PSR-2-1abc9c.svg)](http://www.php-fig.org/psr/psr-2/)
88
[![PSR4](https://img.shields.io/badge/PSR-4-9b59b6.svg)](http://www.php-fig.org/psr/psr-4/)
9-
[![CodeCov](https://codecov.io/gh/josantonius/php-json/branch/master/graph/badge.svg)](https://codecov.io/gh/josantonius/php-json)
9+
[![CodeCov](https://codecov.io/gh/josantonius/php-json/branch/main/graph/badge.svg)](https://codecov.io/gh/josantonius/php-json)
1010

1111
**Traducciones**: [English](/README.md)
1212

@@ -31,8 +31,10 @@ Biblioteca PHP para la gestión de archivos JSON.
3131

3232
## Requisitos
3333

34-
Esta biblioteca es compatible con las versiones de PHP:
35-
**5.6** | **7.0** | **7.1** | **7.2** | **7.3** | **7.4**.
34+
Esta biblioteca es compatible desde la versión **8.0** de PHP hasta la versión **8.1** de PHP.
35+
36+
Para versiones anteriores de PHP (desde la **5.6** hasta la **7.4**) puedes utilizar la
37+
[versión 1.1.9](https://github.com/josantonius/php-json/tree/1.1.9) de esta biblioteca.
3638

3739
## Instalación
3840

@@ -59,20 +61,20 @@ git clone https://github.com/josantonius/php-json.git
5961

6062
O **instalarlo manualmente**:
6163

62-
Descargar [Json.php](https://raw.githubusercontent.com/josantonius/php-json/master/src/Json.php),
63-
[JsonLastError.php](https://raw.githubusercontent.com/josantonius/php-json/master/src/JsonLastError.php) y
64-
[JsonException.php](https://raw.githubusercontent.com/josantonius/php-json/master/src/Exception/JsonException.php):
64+
Descargar [Json.php](https://raw.githubusercontent.com/josantonius/php-json/main/src/Json.php),
65+
[JsonLastError.php](https://raw.githubusercontent.com/josantonius/php-json/main/src/JsonLastError.php) y
66+
[JsonException.php](https://raw.githubusercontent.com/josantonius/php-json/main/src/Exception/JsonException.php):
6567

6668
```console
67-
wget https://raw.githubusercontent.com/josantonius/php-json/master/src/Json.php
69+
wget https://raw.githubusercontent.com/josantonius/php-json/main/src/Json.php
6870
```
6971

7072
```console
71-
wget https://raw.githubusercontent.com/josantonius/php-json/master/src/JsonLastError.php
73+
wget https://raw.githubusercontent.com/josantonius/php-json/main/src/JsonLastError.php
7274
```
7375

7476
```console
75-
wget https://raw.githubusercontent.com/josantonius/php-json/master/src/Exception/JsonException.php
77+
wget https://raw.githubusercontent.com/josantonius/php-json/main/src/Exception/JsonException.php
7678
```
7779

7880
## Métodos disponibles

.github/workflows/ci.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
name: 'Coding style'
1717
steps:
1818
- name: 'Checkout'
19-
uses: 'actions/checkout@v2'
19+
uses: 'actions/checkout@v3'
2020

2121
- name: 'Setup PHP'
2222
uses: 'shivammathur/setup-php@v2'
2323
with:
24-
php-version: '7.4'
24+
php-version: '8.1'
2525
coverage: 'none'
2626
tools: 'composer:v2, composer-normalize'
2727

@@ -45,22 +45,18 @@ jobs:
4545
matrix:
4646
system: ['ubuntu-latest']
4747
php:
48-
- '5.6'
49-
- '7.0'
50-
- '7.1'
51-
- '7.2'
52-
- '7.3'
53-
- '7.4'
48+
- '8.0'
49+
- '8.1'
5450
steps:
5551
- name: Checkout Code
56-
uses: actions/checkout@v2
52+
uses: actions/checkout@v3
5753

5854
- name: 'Setup PHP'
5955
uses: 'shivammathur/setup-php@v2'
6056
with:
6157
php-version: '${{ matrix.php }}'
6258
coverage: 'none'
63-
tools: 'composer:v2'
59+
tools: 'composer:v6'
6460

6561
- name: 'Install dependencies'
6662
run: |
@@ -75,13 +71,13 @@ jobs:
7571
name: 'Code Coverage'
7672
steps:
7773
- name: 'Checkout'
78-
uses: 'actions/checkout@v2'
74+
uses: 'actions/checkout@v3'
7975

8076
- name: 'Setup PHP'
8177
uses: 'shivammathur/setup-php@v2'
8278
with:
83-
php-version: '7.4'
84-
tools: 'composer:v2'
79+
php-version: '8.1'
80+
tools: 'composer:v6'
8581

8682
- name: 'Install dependencies'
8783
run: |

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# CHANGELOG
22

3+
## [1.2.0](https://github.com/josantonius/php-json/releases/tag/1.2.0) (2022-06-13)
4+
5+
* Support for PHP version **8.0** and higher.
6+
7+
* Support for earlier versions of PHP **8.0** is discontinued.
8+
9+
* For older versions of PHP (from **5.6** to **7.4**)
10+
[version 1.1.9](https://github.com/josantonius/php-json/tree/1.1.9) of this library can be used.
11+
312
## [1.1.9](https://github.com/josantonius/php-json/releases/tag/1.1.9) (2022-06-11)
413

514
* Fix sending code coverage report to Codecov.io.

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![CI](https://github.com/josantonius/php-json/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/josantonius/php-json/actions/workflows/ci.yml)
77
[![PSR2](https://img.shields.io/badge/PSR-2-1abc9c.svg)](http://www.php-fig.org/psr/psr-2/)
88
[![PSR4](https://img.shields.io/badge/PSR-4-9b59b6.svg)](http://www.php-fig.org/psr/psr-4/)
9-
[![CodeCov](https://codecov.io/gh/josantonius/php-json/branch/master/graph/badge.svg)](https://codecov.io/gh/josantonius/php-json)
9+
[![CodeCov](https://codecov.io/gh/josantonius/php-json/branch/main/graph/badge.svg)](https://codecov.io/gh/josantonius/php-json)
1010

1111
**Translations**: [Español](.github/lang/es-ES/README.md)
1212

@@ -31,8 +31,10 @@ PHP simple library for managing JSON files.
3131

3232
## Requirements
3333

34-
This library is compatible with the PHP versions:
35-
**5.6** | **7.0** | **7.1** | **7.2** | **7.3** | **7.4**.
34+
This library is compatible from **PHP 8.0** version to **PHP 8.1** version.
35+
36+
For older versions of PHP (from **5.6** to **7.4**) you can use
37+
[version 1.1.9](https://github.com/josantonius/php-json/tree/1.1.9) of this library.
3638

3739
## Installation
3840

@@ -59,20 +61,20 @@ git clone https://github.com/josantonius/php-json.git
5961

6062
Or **install it manually**:
6163

62-
Download [Json.php](https://raw.githubusercontent.com/josantonius/php-json/master/src/Json.php),
63-
[JsonLastError.php](https://raw.githubusercontent.com/josantonius/php-json/master/src/JsonLastError.php) and
64-
[JsonException.php](https://raw.githubusercontent.com/josantonius/php-json/master/src/Exception/JsonException.php):
64+
Download [Json.php](https://raw.githubusercontent.com/josantonius/php-json/main/src/Json.php),
65+
[JsonLastError.php](https://raw.githubusercontent.com/josantonius/php-json/main/src/JsonLastError.php) and
66+
[JsonException.php](https://raw.githubusercontent.com/josantonius/php-json/main/src/Exception/JsonException.php):
6567

6668
```console
67-
wget https://raw.githubusercontent.com/josantonius/php-json/master/src/Json.php
69+
wget https://raw.githubusercontent.com/josantonius/php-json/main/src/Json.php
6870
```
6971

7072
```console
71-
wget https://raw.githubusercontent.com/josantonius/php-json/master/src/JsonLastError.php
73+
wget https://raw.githubusercontent.com/josantonius/php-json/main/src/JsonLastError.php
7274
```
7375

7476
```console
75-
wget https://raw.githubusercontent.com/josantonius/php-json/master/src/Exception/JsonException.php
77+
wget https://raw.githubusercontent.com/josantonius/php-json/main/src/Exception/JsonException.php
7678
```
7779

7880
## Available Methods

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
"source": "https://github.com/josantonius/php-asset"
2525
},
2626
"require": {
27-
"php": "^5.6 || ^7.0"
27+
"php": "^8.0"
2828
},
2929
"require-dev": {
3030
"phpmd/phpmd": "^2.6",
31-
"phpunit/phpunit": "^5.7 || ^6.0",
31+
"phpunit/phpunit": "^9.0",
3232
"squizlabs/php_codesniffer": "^3.6.2"
3333
},
3434
"minimum-stability": "stable",

phpunit.xml

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
syntaxCheck="false"
12-
bootstrap="vendor/autoload.php">
13-
14-
<testsuites>
15-
<testsuite name="Test Suite">
16-
<directory>tests</directory>
17-
</testsuite>
18-
</testsuites>
19-
20-
<filter>
21-
<whitelist>
22-
<directory>src</directory>
23-
</whitelist>
24-
</filter>
25-
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" bootstrap="vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage>
4+
<include>
5+
<directory>src</directory>
6+
</include>
7+
</coverage>
8+
<testsuites>
9+
<testsuite name="Test Suite">
10+
<directory>tests</directory>
11+
</testsuite>
12+
</testsuites>
2613
</phpunit>

tests/JsonLastErrorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class JsonLastErrorTest extends TestCase
2828
/**
2929
* Set up.
3030
*/
31-
public function setUp()
31+
public function setUp(): void
3232
{
3333
parent::setUp();
3434

@@ -50,7 +50,7 @@ public function testGetCollection()
5050
{
5151
$jsonLastError = $this->jsonLastError;
5252

53-
$this->assertInternalType('array', $jsonLastError::getCollection());
53+
$this->assertIsArray($jsonLastError::getCollection());
5454
}
5555

5656
/**

tests/JsonTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class JsonTest extends TestCase
3333
*
3434
* @since 1.1.6
3535
*/
36-
public function setUp()
36+
public function setUp(): void
3737
{
3838
parent::setUp();
3939

0 commit comments

Comments
 (0)