Skip to content

Commit 8e5d559

Browse files
alesinicioTiiFuchs
authored andcommitted
Feat: allow dynamic properties for PHP8.2
Add `AllowDynamicProperties` attribute to Entities.php for PHP8.2 compatibility. Not a permanent/final solution, but good enough to allow upgrades.
1 parent 34b1459 commit 8e5d559

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Entities/Entity.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* @method array getRawData() Get the raw data passed to this entity
2525
* @method string getBotUsername() Return the bot name passed to this entity
2626
*/
27+
#[\AllowDynamicProperties]
2728
abstract class Entity implements \JsonSerializable
2829
{
2930

0 commit comments

Comments
 (0)