Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.2 Creation of dynamic propert warnings #623

Open
ipajen opened this issue Mar 23, 2023 · 3 comments
Open

PHP 8.2 Creation of dynamic propert warnings #623

ipajen opened this issue Mar 23, 2023 · 3 comments

Comments

@ipajen
Copy link

ipajen commented Mar 23, 2023

🐞 bug report

Behavior:

  • What is the issue? (*)
    SDK generates warnings when using PHP 8.2. Using two different plugins that use the Freemius SDK and both has the same issue.

Versions: (*)

  • Freemius SDK Version: 2.5.5
  • WordPress Version: 6.2-RC3
  • PHP Version: 8.2.0

Creation of dynamic property FS_Site::$charset is deprecated
Creation of dynamic property FS_User::$is_beta is deprecated

@vovafeldman
Copy link
Contributor

Hey @ipajen 👋 thanks for reporting the issue 🐞

Both params no longer exist (or are in use). So, most likely, the site was running an older SDK version before, and the objects were stored in the options table with the properties. Now with the new SDK, unserialize() creates those properties on the fly when the objects are loaded using core's get_option().

We've already started working on the storage layer and will be transitioning from PHP serialization to JSON-based one. We'll resolve it as part of that upgrade.

@ipajen
Copy link
Author

ipajen commented May 16, 2023

@vovafeldman any ETA when it will be released? 🙏

@ipajen
Copy link
Author

ipajen commented Nov 15, 2023

@vovafeldman Any update on this issue? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants