Skip to content

Commit

Permalink
Merge pull request #2860 from trsteel88/fix-dynamic-properties-warning
Browse files Browse the repository at this point in the history
Fix: Fixed PHP 8.2 deprecation warning of dynamic properties in Core, Integration and PostType classes
  • Loading branch information
Levdbas committed Jan 26, 2024
2 parents 3c46e58 + 1efaebf commit 1dc2589
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Timber;

#[\AllowDynamicProperties]
abstract class Core {

public $id;
Expand Down
1 change: 1 addition & 0 deletions lib/Integrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* This is for integrating external plugins into timber
* @package timber
*/
#[\AllowDynamicProperties]
class Integrations {

var $acf;
Expand Down
1 change: 1 addition & 0 deletions lib/PostType.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Wrapper for the post_type object provided by WordPress
* @since 1.0.4
*/
#[\AllowDynamicProperties]
class PostType {

/**
Expand Down

0 comments on commit 1dc2589

Please sign in to comment.