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

Deprecation warnings PHP 8.2 and SDK 2.6.2 #696

Open
krollobrocket opened this issue Mar 24, 2024 · 1 comment
Open

Deprecation warnings PHP 8.2 and SDK 2.6.2 #696

krollobrocket opened this issue Mar 24, 2024 · 1 comment

Comments

@krollobrocket
Copy link

Behavior:

What is the issue?
SDK generates warnings when using PHP 8.2. I am having 3 add-ons which all trigger the same warning using the same sdk.

Versions:

Freemius SDK Version: 2.6.2
WordPress Version: 6.4.3
PHP Version: 8.2.17
Deprecated: Creation of dynamic property FS_Site::$blog_id is deprecated in freemius/includes/class-freemius.php on line 3949
Deprecated: Creation of dynamic property FS_Plugin_Plan::$pricing is deprecated in freemius/includes/fs-plugin-info-dialog.php on line 174

@bahiirwa
Copy link
Contributor

Similarly

"Creation of dynamic property FS_User::$is_beta is deprecated'

Location:
wp-includes/functions.php:650
unserialize()
wp-includes/functions.php:650
maybe_unserialize()
wp-includes/option.php:247
get_option()
..../freemius/includes/managers/class-fs-option-manager.php:173
FS_Option_Manager->load()
..../freemius/includes/managers/class-fs-option-manager.php:98
FS_Option_Manager->__construct()
..../freemius/includes/managers/class-fs-option-manager.php:134
FS_Option_Manager::get_manager()
..../freemius/includes/class-fs-options.php:90
FS_Options->__construct()
..../freemius/includes/class-fs-options.php:68
FS_Options::instance()
..../freemius/includes/class-freemius.php:3361
Freemius::_load_required_static()
..../freemius/includes/class-freemius.php:2776
Freemius::instance()
..../freemius/start.php:525
fs_dynamic_init()
..../cleanup-action-scheduler.php:39
cfas_fs()
..../cleanup-action-scheduler.php:65

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

No branches or pull requests

2 participants