Skip to content

Commit 5cc3d50

Browse files
authored
Merge pull request #8 from violet-php/add-php82-support
Add support for PHP 8.2
2 parents a347f5c + b26ca40 commit 5cc3d50

File tree

6 files changed

+33
-25
lines changed

6 files changed

+33
-25
lines changed

.github/actions/setup-composer/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ runs:
55
steps:
66
- name: Get Composer Cache Directory
77
id: composer-cache
8-
run: |
9-
echo "::set-output name=dir::$(composer config cache-files-dir)"
108
shell: bash
11-
- uses: actions/cache@v2
9+
run: |
10+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
11+
- uses: actions/cache@v3
1212
with:
1313
path: ${{ steps.composer-cache.outputs.dir }}
1414
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

.github/workflows/main.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
strategy:
1313
matrix:
1414
operating-system: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
15-
php-versions: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
15+
php-versions: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' , '8.2']
1616
runs-on: ${{ matrix.operating-system }}
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020
- name: Setup PHP
2121
uses: shivammathur/setup-php@v2
2222
with:
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v2
36+
uses: actions/checkout@v3
3737
- name: Setup PHP
3838
uses: shivammathur/setup-php@v2
3939
with:
@@ -46,9 +46,11 @@ jobs:
4646
run: composer phpcs -- --no-cache
4747
PHP-CS-Fixer:
4848
runs-on: ubuntu-latest
49+
env:
50+
PHP_CS_FIXER_IGNORE_ENV: 1
4951
steps:
5052
- name: Checkout
51-
uses: actions/checkout@v2
53+
uses: actions/checkout@v3
5254
- name: Setup PHP
5355
uses: shivammathur/setup-php@v2
5456
with:
@@ -63,7 +65,7 @@ jobs:
6365
runs-on: ubuntu-latest
6466
steps:
6567
- name: Checkout
66-
uses: actions/checkout@v2
68+
uses: actions/checkout@v3
6769
- name: Setup PHP
6870
uses: shivammathur/setup-php@v2
6971
with:
@@ -78,7 +80,7 @@ jobs:
7880
runs-on: ubuntu-latest
7981
steps:
8082
- name: Checkout
81-
uses: actions/checkout@v2
83+
uses: actions/checkout@v3
8284
- name: Setup PHP
8385
uses: shivammathur/setup-php@v2
8486
with:
@@ -90,4 +92,4 @@ jobs:
9092
- name: Run PHPUnit with coverage
9193
run: composer test -- --do-not-cache-result --coverage-clover coverage.xml
9294
- name: Upload coverage
93-
uses: codecov/codecov-action@v1
95+
uses: codecov/codecov-action@v3

.php-cs-fixer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949
'no_short_bool_cast' => true,
5050
'no_singleline_whitespace_before_semicolons' => true,
5151
'no_spaces_around_offset' => true,
52-
'no_trailing_comma_in_list_call' => true,
53-
'no_trailing_comma_in_singleline_array' => true,
52+
'no_trailing_comma_in_singleline' => true,
5453
'no_unneeded_control_parentheses' => true,
5554
'no_unused_imports' => true,
5655
'no_useless_return' => true,

CHANGES.md

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

3+
## v1.1.5 (2022-12-09) ##
4+
5+
* Add support for PHP 8.2
6+
37
## v1.1.4 (2022-01-02) ##
48

59
* Improve Github action workflow

LICENSE

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
Copyright (c) 2016-2020 Riikka Kalliomäki
1+
MIT License
22

3-
Permission is hereby granted, free of charge, to any person obtaining a copy of
4-
this software and associated documentation files (the "Software"), to deal in
5-
the Software without restriction, including without limitation the rights to
6-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7-
the Software, and to permit persons to whom the Software is furnished to do so,
8-
subject to the following conditions:
3+
Copyright (c) 2016-2022 Riikka Kalliomäki
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
911

1012
The above copyright notice and this permission notice shall be included in all
1113
copies or substantial portions of the Software.
1214

1315
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,6 @@ options also have additional effects on the encoders:
282282

283283
## Credits ##
284284

285-
This library is Copyright (c) 2017-2020 Riikka Kalliomäki.
285+
This library is Copyright (c) 2017-2022 Riikka Kalliomäki.
286286

287287
See LICENSE for license and copying information.

0 commit comments

Comments
 (0)