From a3bc081634c8fc9a1363203f1ab34ad8f90b1b7a Mon Sep 17 00:00:00 2001 From: ThunderAl Date: Thu, 25 Jul 2024 03:35:13 +0200 Subject: [PATCH] fix: creation of dynamic property in core/flarum DispatchEventsTrait --- src/Event/WillReactToPost.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Event/WillReactToPost.php b/src/Event/WillReactToPost.php index b8778ef..d1cb439 100644 --- a/src/Event/WillReactToPost.php +++ b/src/Event/WillReactToPost.php @@ -25,7 +25,7 @@ class WillReactToPost /** * @var User */ - public $user; + public $actor; /** * @var Reaction @@ -48,7 +48,7 @@ class WillReactToPost public function __construct(Post $post, User $user, Reaction $reaction, $changed = false) { $this->post = $post; - $this->user = $user; + $this->actor = $user; $this->reaction = $reaction; $this->changed = $changed; }