Skip to content

Commit d3e3f4b

Browse files
authored
Merge pull request #142 from garak/fix-getid
Fix oauth2-client 3 compat, drop PHP 7 support
2 parents 72be695 + b571b73 commit d3e3f4b

5 files changed

Lines changed: 21 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414

1515
- name: Cache dependencies
1616
uses: actions/cache@v3
@@ -35,24 +35,24 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
php:
38-
- '7.3'
39-
- '7.4'
4038
- '8.0'
4139
- '8.1'
4240
- '8.2'
4341
- '8.3'
42+
- '8.4'
43+
- '8.5'
4444
minimum_versions: [ false ]
4545
coverage: [ 'none' ]
4646
include:
4747
- description: Minimum version
48-
php: '7.3'
48+
php: '8.0'
4949
minimum_versions: true
5050
- description: Code coverage
51-
php: '8.2'
51+
php: '8.5'
5252
coverage: pcov
5353
steps:
5454
- name: Checkout
55-
uses: actions/checkout@v4
55+
uses: actions/checkout@v6
5656

5757
- name: Cache dependencies
5858
uses: actions/cache@v3

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
OAuth 2.0 Google Provider Changelog
22

33

4+
## To be released
5+
6+
### Fixed
7+
8+
- Ensure compatibility with `oauth2-client` version 3 by @garak
9+
10+
### Removed
11+
12+
- Remove PHP 7 support by @garak
13+
414
## 4.2.0 - 2026-03-09
515

616
### Added

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ a patch via pull request.
1717
## Requirements
1818

1919
The following versions of PHP are supported.
20+
Support for older PHP versions is available in version 4.2 (and older) of this library.
2021

21-
* PHP 7.3
22-
* PHP 7.4
2322
* PHP 8.0
2423
* PHP 8.1
2524
* PHP 8.2
2625
* PHP 8.3
26+
* PHP 8.4
27+
* PHP 8.5
2728

2829
This package uses [OpenID Connect][openid-connect] to authenticate users with
2930
Google accounts.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"minimum-stability": "stable",
2121
"require": {
22-
"php": "^7.3 || ^8.0",
22+
"php": "^8.0",
2323
"league/oauth2-client": "^2.0 || ^3.0"
2424
},
2525
"require-dev": {

src/Provider/GoogleUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct(array $response)
1717
$this->response = $response;
1818
}
1919

20-
public function getId()
20+
public function getId(): mixed
2121
{
2222
return $this->response['sub'];
2323
}

0 commit comments

Comments
 (0)