mirror of
https://github.com/flarum/core.git
synced 2025-08-13 20:04:24 +02:00
test: php 8.4 (#4103)
* test: php 8.4 * fix: php 8.4 deprecations * fix: make argument required * chore: review changes
This commit is contained in:
@@ -18,7 +18,7 @@ class DiscussionLockedPost extends AbstractEventPost implements MergeableInterfa
|
||||
{
|
||||
public static string $type = 'discussionLocked';
|
||||
|
||||
public function saveAfter(Post $previous = null): static
|
||||
public function saveAfter(?Post $previous = null): static
|
||||
{
|
||||
// If the previous post is another 'discussion locked' post, and it's
|
||||
// by the same user, then we can merge this post into it. If we find
|
||||
|
Reference in New Issue
Block a user