Skip to content

New breaking error since 1.5.0 - MessageMovedEvent not enough parameters #322

@devsi

Description

@devsi

Describe the bug
On this line since 1.5.0 you added Event:

MessageMovedEvent::dispatch($this, $message);

But the MessageMovedEvent has this signature

public function __construct($old_message, $new_message) {
:

You are missing the second parameter for the event. The result is that message->moveToFolder does not work and throws an error:

Too few arguments to function Webklex\IMAP\Events\MessageMovedEvent::__construct(), 1 passed in /var/www/vendor/webklex/laravel-imap/src/IMAP/Events/Event.php on line 15 and exactly 2 expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions