Skip to content

Commit

Permalink
Fix FormSubmitted event property. Closes #2271.
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Aug 24, 2020
1 parent 106b3f4 commit 1112571
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Events/FormSubmitted.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

class FormSubmitted extends Event
{
public $form;
public $submission;

public function __construct($form)
public function __construct($submission)
{
$this->form = $form;
$this->submission = $submission;
}

/**
Expand Down

2 comments on commit 1112571

@edalzell
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change, ya? Maybe keep both so no published add ons break? @jesseleite

@jasonvarga
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in another commit.

Please sign in to comment.