Skip to content

Commit c38a187

Browse files
committed
PHP 8.5
1 parent 3c53dc4 commit c38a187

File tree

5 files changed

+9
-24
lines changed

5 files changed

+9
-24
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Test
22
on: [ push ]
33
jobs:
44
test:
5-
runs-on: ubuntu-20.04
5+
runs-on: ubuntu-22.04
66
strategy:
77
matrix:
8-
php: [ '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
8+
php: [ '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
99
steps:
1010
- uses: actions/checkout@v2
1111
- run: mkdir -p build/logs
@@ -15,20 +15,3 @@ jobs:
1515
php-version: ${{matrix.php}}
1616
- run: composer install
1717
- run: php vendor/bin/phpunit
18-
- name: Coveralls
19-
env:
20-
COVERALLS_REPO_TOKEN: ${{secrets.GITHUB_TOKEN}}
21-
COVERALLS_PARALLEL: true
22-
COVERALLS_FLAG_NAME: php-${{matrix.php}}
23-
run: |
24-
composer global require twinh/php-coveralls
25-
php vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
26-
coveralls-finish:
27-
needs: test
28-
runs-on: ubuntu-20.04
29-
steps:
30-
- name: Coveralls finish
31-
uses: coverallsapp/github-action@1.1.3
32-
with:
33-
github-token: ${{secrets.GITHUB_TOKEN}}
34-
parallel-finished: true

CHANGELOG.md

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

3+
## 4.2.0 - 2025-12-19
4+
* Support PHP 8.5 (upgrade your Guzzle dependency to `^7.10.0` - see [this issue](https://github.com/guzzle/guzzle/issues/3297)).
5+
* Remove Coveralls reporting as the dependency is unmaintained.
6+
37
## 4.1.0 - 2025-03-19
48
* Add support for `encoding` via `SMSMessage::ENCODING_UTF8` and `SMSMessage::ENCODING_UCS2`. Default is `null`, which
59
uses `UTF8`. Note that `UTF8` means that the GSM-7 character set is used. `UCS2` adds the ability to use emojis, but

coveralls.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

readme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[![Build Status](https://github.com/nickdnk/gatewayapi-php/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/nickdnk/gatewayapi-php/actions)
2-
[![Coverage Status](https://coveralls.io/repos/github/nickdnk/gatewayapi-php/badge.svg?branch=master)](https://coveralls.io/github/nickdnk/gatewayapi-php?branch=master)
32
# GatewayAPI PHP Library
43

54
This library will allow you to integrate the **GatewayAPI.com** API in your project using modern PHP.
@@ -15,7 +14,7 @@ Once you have that you need to generate an API key/secret pair under **API** ->
1514

1615
To include this in your project, install it using Composer.
1716

18-
This library requires PHP >= 7.3 and is tested against 8.0, 8.1, 8.2, 8.3 and 8.4.
17+
This library requires PHP >= 7.3 and is tested against PHP 8.
1918

2019
`composer require nickdnk/gatewayapi-php`
2120

src/Entities/Webhooks/Webhook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ private static function parseAndValidateJWT(string $jwt, string $secret): array
9797
case 'HS256':
9898
$algo = 'sha256';
9999
break;
100-
case 'HS384';
100+
case 'HS384':
101101
$algo = 'sha384';
102102
break;
103-
case 'HS512';
103+
case 'HS512':
104104
$algo = 'sha512';
105105
break;
106106
default:

0 commit comments

Comments
 (0)