Skip to content

Commit 50e170d

Browse files
author
NatePage
committed
Use common event args type hint in postFlush method.
1 parent d2f2206 commit 50e170d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Gedmo/SoftDeleteable/SoftDeleteableListener.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Gedmo\SoftDeleteable;
44

5-
use Doctrine\ORM\Event\PostFlushEventArgs;
65
use Gedmo\Mapping\MappedEventSubscriber;
76
use Doctrine\Common\EventArgs;
87
use Doctrine\ODM\MongoDB\UnitOfWork as MongoDBUnitOfWork;
@@ -110,11 +109,11 @@ public function onFlush(EventArgs $args)
110109
/**
111110
* Detach soft-deleted objects from object manager.
112111
*
113-
* @param \Doctrine\ORM\Event\PostFlushEventArgs $args
112+
* @param \Doctrine\Common\EventArgs $args
114113
*
115114
* @return void
116115
*/
117-
public function postFlush(PostFlushEventArgs $args)
116+
public function postFlush(EventArgs $args)
118117
{
119118
$ea = $this->getEventAdapter($args);
120119
$om = $ea->getObjectManager();

0 commit comments

Comments
 (0)