Skip to content

Commit

Permalink
Merge pull request #3774 from Simpler1/master
Browse files Browse the repository at this point in the history
fix(php8): AllowDynamicProperties
  • Loading branch information
connortechnology authored Oct 1, 2023
2 parents bdc1660 + 2547376 commit e535267
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/includes/Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

$object_cache = array();

/**
* Use the fully-qualified AllowDynamicProperties, otherwise the #[AllowDynamicProperties] attribute on "MyClass" WILL NOT WORK.
*/
use \AllowDynamicProperties;

#[AllowDynamicProperties]
class ZM_Object {
protected $_last_error;

Expand Down

0 comments on commit e535267

Please sign in to comment.