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

SDK compatibility with PHP 8.1 #616

Open
matczar opened this issue Feb 21, 2023 · 1 comment
Open

SDK compatibility with PHP 8.1 #616

matczar opened this issue Feb 21, 2023 · 1 comment

Comments

@matczar
Copy link
Contributor

matczar commented Feb 21, 2023

🐞 bug report

Behavior:

  • What is the issue? (*)
    A customer has reported that the SDK generates warnings when testing on PHP 8.1.
PHP Deprecated: hash_hmac(): Passing null to parameter [#3] ($key) of type string is deprecated in /[...]/lib/includes/sdk/FreemiusWordPress.php on line 260
PHP Deprecated: substr(): Passing null to parameter [#1] ($string) of type string is deprecated in /[...]/lib/includes/fs-core-functions.php on line 549
PHP Warning: Undefined property: stdClass::$plan_id in /[...]/lib/includes/entities/class-fs-site.php on line 122
  • What is the expected behavior?
    No warnings

Versions: (*)

  • Freemius SDK Version: 2.5.3
  • WordPress Version: 6.1
  • PHP Version: 8.1
@cliffordp
Copy link
Contributor

PHP 8.1.21
NotificationX | Version 2.7.5 by WPDeveloper
NotificationX Pro | Version 2.8.3 by WPDeveloper

PHP Deprecated:  Automatic conversion of false to array is deprecated in /wp-content/plugins/notificationx-pro/includes/Extensions/Freemius/Freemius.php on line 33

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