Skip to content

Commit bbdd7d0

Browse files
committed
Support for php 8 #1
1 parent a707d2f commit bbdd7d0

File tree

5 files changed

+58
-17
lines changed

5 files changed

+58
-17
lines changed

.github/workflows/test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "testing"
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
tests:
11+
name: Tests
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
php:
17+
- 7.2
18+
- 7.3
19+
- 7.4
20+
composer-args: [ "" ]
21+
include:
22+
- php: 8.0
23+
composer-args: --ignore-platform-reqs
24+
fail-fast: false
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
30+
- name: Install PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php }}
34+
35+
- name: Cache PHP dependencies
36+
uses: actions/cache@v2
37+
with:
38+
path: vendor
39+
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
40+
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer-
41+
42+
- name: Install dependencies
43+
run: composer install --prefer-dist --no-progress --no-suggest ${{ matrix.composer-args }}
44+
45+
- name: Tests
46+
run: composer test

.travis.yml

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

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](http://keepachangelog.com/)
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [1.1.1] - Unreleased
9+
### Fixed
10+
- Support for PHP 8 [#1]
11+
812
## 1.0.0 - 2019-11-05
913
First version
14+
15+
[#1]: https://github.com/php-gettext/Json/issues/1
16+
17+
[1.1.1]: https://github.com/php-gettext/Json/compare/v1.0.0...HEAD

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Latest Version on Packagist][ico-version]][link-packagist]
44
[![Software License][ico-license]](LICENSE)
5-
[![Build Status][ico-travis]][link-travis]
5+
![Build Status][ico-ga]
66
[![Quality Score][ico-scrutinizer]][link-scrutinizer]
77
[![Total Downloads][ico-downloads]][link-downloads]
88

@@ -40,11 +40,10 @@ The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.
4040

4141
[ico-version]: https://img.shields.io/packagist/v/gettext/json.svg?style=flat-square
4242
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
43-
[ico-travis]: https://img.shields.io/travis/php-gettext/Json/master.svg?style=flat-square
43+
[ico-ga]: https://github.com/php-gettext/Json/workflows/testing/badge.svg
4444
[ico-scrutinizer]: https://img.shields.io/scrutinizer/g/php-gettext/Json.svg?style=flat-square
4545
[ico-downloads]: https://img.shields.io/packagist/dt/gettext/json.svg?style=flat-square
4646

4747
[link-packagist]: https://packagist.org/packages/gettext/json
48-
[link-travis]: https://travis-ci.org/php-gettext/Json
4948
[link-scrutinizer]: https://scrutinizer-ci.com/g/php-gettext/Json
5049
[link-downloads]: https://packagist.org/packages/gettext/json

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"issues": "https://github.com/php-gettext/Json/issues"
1919
},
2020
"require": {
21-
"php": "^7.2",
21+
"php": "^7.2|^8.0",
2222
"gettext/gettext": "^5.0.0"
2323
},
2424
"require-dev": {

0 commit comments

Comments
 (0)