Skip to content

Commit 57396c6

Browse files
fix: Use correct Event type for deleting elements
1 parent 18212f1 commit 57396c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function init(): void
7070
Event::on(
7171
Element::class,
7272
Element::EVENT_AFTER_SAVE,
73-
static function (ModelEvent $event) use ($autoSyncIndices): void {
73+
static function (Event $event) use ($autoSyncIndices): void {
7474
/** @var Element $sender */
7575
$sender = $event->sender;
7676

0 commit comments

Comments
 (0)