From 43040a227547d5d548deda864cbcd04ec8f16baf Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 27 Aug 2026 11:19:18 +0930 Subject: [PATCH] fix: add missing property declarations (phpstan property.notFound) - Add $fractal property and initialization to NewPublicPost event - Add $mastodon and $pleroma property declarations to AudienceScopeTest --- app/Events/Notification/NewPublicPost.php | 3 +++ tests/Unit/ActivityPub/AudienceScopeTest.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/app/Events/Notification/NewPublicPost.php b/app/Events/Notification/NewPublicPost.php index c1c7c4940..7db2ee7c2 100644 --- a/app/Events/Notification/NewPublicPost.php +++ b/app/Events/Notification/NewPublicPost.php @@ -17,6 +17,8 @@ class NewPublicPost implements ShouldBroadcastNow protected $status; + protected $fractal; + /** * Create a new event instance. * @@ -25,6 +27,7 @@ class NewPublicPost implements ShouldBroadcastNow public function __construct(Status $status) { $this->status = $status; + $this->fractal = new Fractal\Manager; } public function broadcastAs() diff --git a/tests/Unit/ActivityPub/AudienceScopeTest.php b/tests/Unit/ActivityPub/AudienceScopeTest.php index 19e0e3e1e..859bc9ace 100644 --- a/tests/Unit/ActivityPub/AudienceScopeTest.php +++ b/tests/Unit/ActivityPub/AudienceScopeTest.php @@ -10,6 +10,10 @@ class AudienceScopeTest extends TestCase { protected array $invalid; + protected array $mastodon; + + protected array $pleroma; + protected function setUp(): void { parent::setUp();