Skip to content

Commit

Permalink
feat: require PHP 8.2 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Jan 4, 2023
1 parent 7a14656 commit 5c521d5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none

- name: Install composer dependencies
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1]
php: [8.2]
laravel: ['^9.22']
stability: [prefer-lowest, prefer-stable]
include:
- laravel: '^9.22'
testbench: '^7.0'

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

Expand All @@ -42,7 +39,7 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --ansi
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update --ansi
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ansi
- name: Execute tests
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.2",
"guzzlehttp/guzzle": "^7.5",
"laravel/framework": "^9.22",
"laravel/framework": "^9.46",
"pragmarx/google2fa": "^8.0",
"spatie/laravel-package-tools": "^1.12.1"
"spatie/laravel-package-tools": "^1.13.8"
},
"require-dev": {
"nunomaduro/collision": "^6.3",
"nunomaduro/larastan": "^2.0",
"orchestra/testbench": "^7.8",
"pestphp/pest": "^1.22",
"nunomaduro/larastan": "^2.3.2",
"orchestra/testbench": "^7.18",
"pestphp/pest": "^1.22.3",
"pestphp/pest-plugin-parallel": "^1.2",
"pestphp/pest-plugin-laravel": "^1.1",
"spatie/laravel-ray": "^1.30",
"worksome/pest-plugin-silence": "^0.1.1",
"worksome/coding-style": "^2.0"
"worksome/pest-plugin-silence": "^0.1.2",
"worksome/coding-style": "^2.3"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Totp/BasicTotpDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(private readonly Google2FA $engine, private readonly

public function make(Identifier $to): CreationResponse
{
return new CreationResponse($this->status ?? Status::PENDING);
return new CreationResponse(Status::PENDING);
}

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

0 comments on commit 5c521d5

Please sign in to comment.