Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Support Laravel 8
Browse files Browse the repository at this point in the history
  • Loading branch information
sharifzadesina committed Sep 9, 2020
1 parent 8fa11b6 commit 0b49298
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ jobs:
fail-fast: false
matrix:
php: ['7.4']
laravel: ['^6.0', '^7.0']
laravel: ['^6.0', '^7.0', '^8.0']
include:
- laravel: '^6.0'
testbench: '^4.0'
- laravel: '^7.0'
testbench: '^5.0'
- laravel: '^8.0'
testbench: '^6.0'

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"prefer-stable": true,
"require": {
"php": "^7.4",
"laravel/framework": "^6.0|^7.0"
"laravel/framework": "^6.0|^7.0|^8.0"
},
"require-dev": {
"orchestra/testbench": "^4.0|^5.0",
"orchestra/testbench": "^4.0|^5.0|^6.0",
"phpunit/phpunit": "^9.0"
},
"autoload": {
Expand Down
6 changes: 3 additions & 3 deletions src/Concerns/DelegatesToDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ trait DelegatesToDispatcher
/**
* Register an event listener with the dispatcher.
*
* @param string|array $events
* @param mixed $listener
* @param \Closure|string|array $events
* @param \Closure|string|null $listener
* @return void
*/
public function listen($events, $listener)
public function listen($events, $listener = null)
{
$this->dispatcher->listen($events, $listener);
}
Expand Down

0 comments on commit 0b49298

Please sign in to comment.