Skip to content

Commit d7e9362

Browse files
authored
Merge pull request #15 from portier/feat/compat
Broaden supported ranges of php and deps
2 parents 6a21df0 + 8cfef90 commit d7e9362

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ jobs:
1212
name: Check
1313
runs-on: ubuntu-latest
1414
strategy:
15+
fail-fast: false
1516
matrix:
16-
php-versions: ['8.1', '8.2', '8.3']
17+
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3']
1718
steps:
1819

1920
- name: Checkout

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
}
2121
},
2222
"require": {
23-
"fgrosse/phpasn1": "^2.2",
24-
"lcobucci/clock": "^3.0.0",
25-
"lcobucci/jwt": "^5.2.0",
26-
"guzzlehttp/guzzle": "^7.3"
23+
"fgrosse/phpasn1": "^2.3.1",
24+
"lcobucci/clock": "^2.0.0 || ^3.0.0",
25+
"lcobucci/jwt": "^4.1.0 || ^5.0.0",
26+
"guzzlehttp/guzzle": "^7.2.0"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "^10.4.2",
29+
"phpunit/phpunit": "^9.5 || ^10.4.2",
3030
"phpstan/phpstan": "^1.2.0",
3131
"friendsofphp/php-cs-fixer": "^3.14"
3232
}

src/VerifyResult.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
namespace Portier\Client;
44

55
/** The result of a call to `Client::verify`. */
6-
class VerifyResult
6+
final class VerifyResult
77
{
8-
public function __construct(
9-
/** The verified email address. */
10-
public string $email,
11-
/** State that was carry over from the call to `authenticate`. */
12-
public ?string $state = null,
13-
) {
8+
/** The verified email address. */
9+
public string $email;
10+
/** State that was carry over from the call to `authenticate`. */
11+
public ?string $state;
12+
13+
/** @internal */
14+
public function __construct(string $email, ?string $state)
15+
{
16+
$this->email = $email;
17+
$this->state = $state;
1418
}
1519
}

0 commit comments

Comments
 (0)