Skip to content

Commit

Permalink
Allow php8.1 (#13)
Browse files Browse the repository at this point in the history
* wip

* Apply fixes from StyleCI (#14)

Co-authored-by: Chrysanthos <chrysanthos@users.noreply.github.com>

Co-authored-by: Chrysanthos <chrysanthos@users.noreply.github.com>
  • Loading branch information
chrysanthos and chrysanthos authored Oct 30, 2021
1 parent 75d9b18 commit 4dee4ad
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ on: [pull_request, push]

jobs:
test:

runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.3, 7.4, 8.0]
laravel: [6.*, 7.*, 8.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 6.*
testbench: 4.*
Expand All @@ -20,7 +18,7 @@ jobs:
- laravel: 8.*
testbench: 6.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
name: P${{ matrix.php }} - L${{ matrix.laravel }}

steps:
- name: Checkout code
Expand All @@ -42,7 +40,7 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
composer update --prefer-stable --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
],
"require": {
"php": "^7.3|^8.0",
"php": ">7.3",
"illuminate/support": "^6.5 | ^7.0 | ^8.0"
},
"require-dev": {
Expand Down
1 change: 0 additions & 1 deletion src/Jobs/LogAuthAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ protected function getPassword()
/**
* @param string $value The value to be masked
* @param int $number The number of characters to be plain text
*
* @return string
*/
protected function mask(string $value, $number)
Expand Down
1 change: 0 additions & 1 deletion src/Listeners/AuthAttemptListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class AuthAttemptListener
* Handle the event.
*
* @param object $event
*
* @return void
*/
public function handle($event)
Expand Down

0 comments on commit 4dee4ad

Please sign in to comment.