Skip to content

Commit 2384d30

Browse files
committed
added support for php8 #1
1 parent 2eea4d5 commit 2384d30

File tree

5 files changed

+56
-16
lines changed

5 files changed

+56
-16
lines changed

.github/workflows/test.yml

+46
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

-12
This file was deleted.

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
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.1.0] - 2020-05-23
913
### Removed
1014
- Function `_` in the list of default functions to scan
@@ -15,4 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1519
## 1.0.0 - 2019-11-05
1620
First version
1721

22+
[#1]: https://github.com/php-gettext/JS-Scanner/issues/1
23+
24+
[1.1.1]: https://github.com/php-gettext/JS-Scanner/compare/v1.1.0...HEAD
1825
[1.1.0]: https://github.com/php-gettext/JS-Scanner/compare/v1.0.0...v1.1.0

README.md

+2-3
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

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

5353
[ico-version]: https://img.shields.io/packagist/v/gettext/js-scanner.svg?style=flat-square
5454
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
55-
[ico-travis]: https://img.shields.io/travis/php-gettext/JS-Scanner/master.svg?style=flat-square
55+
[ico-ga]: https://github.com/php-gettext/PHP-Scanner/workflows/testing/badge.svg
5656
[ico-scrutinizer]: https://img.shields.io/scrutinizer/g/php-gettext/JS-Scanner.svg?style=flat-square
5757
[ico-downloads]: https://img.shields.io/packagist/dt/gettext/js-scanner.svg?style=flat-square
5858

5959
[link-packagist]: https://packagist.org/packages/gettext/js-scanner
60-
[link-travis]: https://travis-ci.org/php-gettext/JS-Scanner
6160
[link-scrutinizer]: https://scrutinizer-ci.com/g/php-gettext/JS-Scanner
6261
[link-downloads]: https://packagist.org/packages/gettext/js-scanner

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"issues": "https://github.com/php-gettext/JS-Scanner/issues"
1919
},
2020
"require": {
21-
"php": "^7.2",
21+
"php": "^7.2|^8.0",
2222
"gettext/gettext": "^5.5.0",
2323
"mck89/peast": "^1.9"
2424
},

0 commit comments

Comments
 (0)