Skip to content

Commit

Permalink
Feat: allow dynamic properties for PHP8.2
Browse files Browse the repository at this point in the history
Add `AllowDynamicProperties` attribute to Entities.php for PHP8.2 compatibility.
Not a permanent/final solution, but good enough to allow upgrades.
  • Loading branch information
alesinicio authored and TiiFuchs committed Apr 26, 2023
1 parent 34b1459 commit 8e5d559
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Entities/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* @method array getRawData() Get the raw data passed to this entity
* @method string getBotUsername() Return the bot name passed to this entity
*/
#[\AllowDynamicProperties]
abstract class Entity implements \JsonSerializable
{

Expand Down

0 comments on commit 8e5d559

Please sign in to comment.