Skip to content

Commit e25c714

Browse files
authored
Merge pull request #13 from worksome/feature/php-8.2
feat: require PHP 8.2 or later
2 parents 7a14656 + 5c521d5 commit e25c714

File tree

4 files changed

+12
-15
lines changed

4 files changed

+12
-15
lines changed

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.1'
19+
php-version: '8.2'
2020
coverage: none
2121

2222
- name: Install composer dependencies

.github/workflows/tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ jobs:
1515
fail-fast: true
1616
matrix:
1717
os: [ubuntu-latest]
18-
php: [8.1]
18+
php: [8.2]
1919
laravel: ['^9.22']
2020
stability: [prefer-lowest, prefer-stable]
21-
include:
22-
- laravel: '^9.22'
23-
testbench: '^7.0'
2421

2522
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2623

@@ -42,7 +39,7 @@ jobs:
4239
4340
- name: Install dependencies
4441
run: |
45-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --ansi
42+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update --ansi
4643
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ansi
4744
4845
- name: Execute tests

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.1",
19+
"php": "^8.2",
2020
"guzzlehttp/guzzle": "^7.5",
21-
"laravel/framework": "^9.22",
21+
"laravel/framework": "^9.46",
2222
"pragmarx/google2fa": "^8.0",
23-
"spatie/laravel-package-tools": "^1.12.1"
23+
"spatie/laravel-package-tools": "^1.13.8"
2424
},
2525
"require-dev": {
2626
"nunomaduro/collision": "^6.3",
27-
"nunomaduro/larastan": "^2.0",
28-
"orchestra/testbench": "^7.8",
29-
"pestphp/pest": "^1.22",
27+
"nunomaduro/larastan": "^2.3.2",
28+
"orchestra/testbench": "^7.18",
29+
"pestphp/pest": "^1.22.3",
3030
"pestphp/pest-plugin-parallel": "^1.2",
3131
"pestphp/pest-plugin-laravel": "^1.1",
3232
"spatie/laravel-ray": "^1.30",
33-
"worksome/pest-plugin-silence": "^0.1.1",
34-
"worksome/coding-style": "^2.0"
33+
"worksome/pest-plugin-silence": "^0.1.2",
34+
"worksome/coding-style": "^2.3"
3535
},
3636
"autoload": {
3737
"psr-4": {

src/Drivers/Totp/BasicTotpDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(private readonly Google2FA $engine, private readonly
1919

2020
public function make(Identifier $to): CreationResponse
2121
{
22-
return new CreationResponse($this->status ?? Status::PENDING);
22+
return new CreationResponse(Status::PENDING);
2323
}
2424

2525
public function verify(Identifier $to, string $code): bool

0 commit comments

Comments
 (0)