Skip to content

Commit

Permalink
declaration of sluggable compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
remipou committed Jun 6, 2021
1 parent 2723b6e commit baa46ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function getSanitizedContentAttribute()
return preg_replace('/(<a.*figure.*>)((<img.*)(width="\d+" height="\d+")(>))(<figcaption.*<span.*>((.*)\..*)<\/span>.*<\/a>)/U', '$3class="image-$8"$5', $this->content);
}

public function sluggable()
public function sluggable(): array
{
return [
'slug' => [
Expand Down

0 comments on commit baa46ad

Please sign in to comment.