apply rector rules after merging master branch

This commit is contained in:
2023-09-27 15:35:54 +02:00
parent 65aa0a1588
commit 5f8b86b839
6 changed files with 7 additions and 29 deletions

View File

@@ -36,9 +36,9 @@ use function in_array;
class PersonMove
{
public function __construct(
private EntityManagerInterface $em,
private PersonMoveManager $personMoveManager,
private EventDispatcherInterface $eventDispatcher
private readonly EntityManagerInterface $em,
private readonly PersonMoveManager $personMoveManager,
private readonly EventDispatcherInterface $eventDispatcher
) {}
/**
@@ -95,7 +95,7 @@ class PersonMove
$sql,
['to' => $to->getId(), 'original_action' => 'move']
);
$this->eventDispatcher->dispatch(ActionEvent::DELETE, $event);
$this->eventDispatcher->dispatch($event, ActionEvent::DELETE);
$sqls = array_merge($sqls, $event->getPreSql(), [$event->getSqlStatement()], $event->getPostSql());
} else {
$sqls = array_merge($sqls, $this->createMoveSQLs($metadata, $from, $to, $field));