Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ php:
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- nightly

env:
Expand All @@ -22,7 +24,7 @@ env:

matrix:
allow_failures:
- php: 7.4
- php: 8.1
- php: nightly

before_script:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
}
],
"require": {
"php": "^5.5 | ^7.0",
"symfony/process": "^2.8 | ^3.2 | ^4.0",
"php": "^5.5 | ^7.0 | ^8.0",
"symfony/process": "^2.8 | ^3.2 | ^4.0 | ^5.0",
"graze/data-structure": "^2.0",
"symfony/event-dispatcher": "^2.8 | ^3.2 | ^4.0",
"symfony/event-dispatcher": "^2.8 | ^3.2 | ^4.0 | ^5.0",
"psr/log": "^1.0"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions src/Event/EventDispatcherTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Graze\ParallelProcess\Event;

use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

Expand Down Expand Up @@ -60,7 +60,7 @@ public function addListener($name, callable $handler)
protected function dispatch($name, Event $event)
{
$this->assertEventName($name);
$this->getEventDispatcher()->dispatch($name, $event);
$this->getEventDispatcher()->dispatch($event, $name);
return $this;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Event/PriorityChangedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Graze\ParallelProcess\Event;

use Graze\ParallelProcess\PrioritisedInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

class PriorityChangedEvent extends Event
{
Expand Down
2 changes: 1 addition & 1 deletion src/Event/RunEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace Graze\ParallelProcess\Event;

use Graze\ParallelProcess\RunInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Contracts\EventDispatcher\Event;

class RunEvent extends Event
{
Expand Down