Skip to content

Commit

Permalink
Fix doctrine-extensions#2012 Call parent constructor in listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
AkenRoberts committed Jul 18, 2019
1 parent c8f6ebc commit ed1ae63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ a release.
---

## [Unreleased]
### Global / Shared
#### Fixed
- Add `parent::__construct()` calls to Listeners w/ custom constructors (#2012)

### Loggable
#### Fixed
- Added missing string casting of `objectId` in `LogEntryRepository::revert()` method (#2009)
Expand Down
2 changes: 2 additions & 0 deletions lib/Gedmo/References/ReferencesListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class ReferencesListener extends MappedEventSubscriber

public function __construct(array $managers = array())
{
parent::__construct();

$this->managers = $managers;
}

Expand Down
2 changes: 2 additions & 0 deletions lib/Gedmo/Uploadable/UploadableListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ class UploadableListener extends MappedEventSubscriber

public function __construct(MimeTypeGuesserInterface $mimeTypeGuesser = null)
{
parent::__construct();

$this->mimeTypeGuesser = $mimeTypeGuesser ? $mimeTypeGuesser : new MimeTypeGuesser();
}

Expand Down

0 comments on commit ed1ae63

Please sign in to comment.