Skip to content

Commit

Permalink
Merge pull request #57 from biig-io/remove-useless-bc-layer
Browse files Browse the repository at this point in the history
Removed backward compatibility layer for Sf < 4.3
  • Loading branch information
Maxime Veber authored Jul 25, 2019
2 parents c3593db + 6546bd2 commit 21a5bd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [2.0.3] - 2019-07-25
### Changed
- Removed BC layer for Sf < 4.3 (was useless)

## [2.0.2] - 2019-07-08
### Changed

Expand Down
6 changes: 3 additions & 3 deletions src/Event/DomainEventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ public function addPostPersistDomainRuleInterface(PostPersistDomainRuleInterface
}

/**
* @param Event|null $event
* @param Event|null $event
* @param string|null $eventName
*
* @return Event
*/
public function dispatch($event/*, string $eventName = null*/)
public function dispatch($event, string $eventName = null)
{
$eventName = 1 < \func_num_args() ? \func_get_arg(1) : null;
$event = parent::dispatch($event, $eventName);

if ($event instanceof DomainEvent) {
Expand Down

0 comments on commit 21a5bd0

Please sign in to comment.