Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Model/Behavior/UploadBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ public function beforeSave(EventInterface $event, EntityInterface $entity, Array
* @param \Cake\Event\EventInterface $event The afterDelete event that was fired
* @param \Cake\Datasource\EntityInterface $entity The entity that was deleted
* @param \ArrayObject $options the options passed to the delete method
* @return bool
* @return void
*/
public function afterDelete(EventInterface $event, EntityInterface $entity, ArrayObject $options): bool
public function afterDelete(EventInterface $event, EntityInterface $entity, ArrayObject $options): void
{
$result = true;

Expand Down Expand Up @@ -193,7 +193,7 @@ public function afterDelete(EventInterface $event, EntityInterface $entity, Arra
}
}

return $result;
$event->setResult($result);
}

/**
Expand Down
Loading