Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
94noni authored Jan 3, 2024
1 parent bbb521e commit 7bfb28e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/event_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ order. Start by creating this custom event class and documenting it::
* This event is dispatched each time an order
* is placed in the system.
*/
class OrderPlacedEvent extends Event
final class OrderPlacedEvent extends Event
{
public function __construct(protected Order $order) {}
public function __construct(private Order $order) {}

public function getOrder(): Order
{
Expand Down

0 comments on commit 7bfb28e

Please sign in to comment.