Skip to content

Commit

Permalink
add :void to afterSave
Browse files Browse the repository at this point in the history
  • Loading branch information
ordigital authored Nov 21, 2024
1 parent 126d7c7 commit 03d6d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/1_docs/4_form-fields/06_multi-select.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function sectors() {
- In your repository, make sure to sync the association when saving:

```php
public function afterSave($object, $fields)
public function afterSave($object, $fields): void
{
$object->sectors()->sync($fields['sectors'] ?? []);

Expand Down

0 comments on commit 03d6d4c

Please sign in to comment.