Skip to content

Fix PHP 8.2 Dynamic Property Deprecation Warnings#32

Open
yumuq wants to merge 3 commits intoflarum:2.xfrom
yumuq:2.x
Open

Fix PHP 8.2 Dynamic Property Deprecation Warnings#32
yumuq wants to merge 3 commits intoflarum:2.xfrom
yumuq:2.x

Conversation

@yumuq
Copy link
Copy Markdown

@yumuq yumuq commented May 2, 2025

Fix PHP 8.2 Dynamic Property Deprecation Warnings

Changes

  • Added explicit $actor property to PostWasLiked and PostWasUnliked events
  • Updated SaveLikesToDatabase listener to pass actor parameter

Testing

  • Verified likes/unlikes work without deprecation warnings on PHP 8.2+

yumuq added 3 commits May 2, 2025 11:05
- Added `$actor` property declaration to fix PHP 8.2+ dynamic property deprecation warning
- Updated constructor to accept `$actor` parameter
- Same changes as `PostWasLiked.php`
- Maintain consistency between both event classes
- Updated event triggering code to pass `$actor` as third parameter
- Ensured compatibility with modified event class constructors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant