Skip to content

Commit

Permalink
chore: Fix Markdown list
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored and pionl committed Apr 26, 2023
1 parent 0d98c88 commit 77197b7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/content/en/database/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ listeners.

1. Create a class and extend `LaraStrict\Database\Listeners\AbstractDispatchChangesEventsListener`.
2. Implement `attributesToEvent` that should return an array map of `attribute name` and a `Closure` that tries to create event (can return null).
1. You will receive the value (do not forget typehint the correct type) as first argument
2. You will receive the event (do not forget typehint the correct type) as second argument
3. Return an `object` or event name `string`
1. You will receive the value (do not forget typehint the correct type) as first argument
2. You will receive the event (do not forget typehint the correct type) as second argument
3. Return an `object` or event name `string`
3. (optional) Typehint which model is received for PHPStan
```php
/**
* @extends AbstractDispatchChangesEventsListener<ObjectProviderUpdatedEvent>
*/
class DispatchObjectProviderChangesListener extends AbstractDispatchChangesEventsListener
```
```php
/**
* @extends AbstractDispatchChangesEventsListener<ObjectProviderUpdatedEvent>
*/
class DispatchObjectProviderChangesListener extends AbstractDispatchChangesEventsListener
```

```php
declare(strict_types=1);
Expand Down

0 comments on commit 77197b7

Please sign in to comment.