Skip to content

Commit

Permalink
Merge pull request #36 from Cyriljshaz/error-jsonSerialize
Browse files Browse the repository at this point in the history
Issue : Declaration of jsonSerialize() must be compatible #35
  • Loading branch information
tomhatzer authored Dec 27, 2023
2 parents ed3dfb1 + 52c51fd commit 21c9495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Slug.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function asHtml()
return $this->withMeta(['asHtml' => true]);
}

public function jsonSerialize()
public function jsonSerialize() : array
{
return array_merge([
'disableAutoUpdateWhenUpdating' => $this->disableAutoUpdateWhenUpdating,
Expand Down

0 comments on commit 21c9495

Please sign in to comment.