Freemius / wordpress-sdk

https://freemius.com
GNU General Public License v3.0
258 stars 76 forks source link

Warning with PHP 8.3.6 #711

Open essekia opened 1 month ago

essekia commented 1 month ago

I have this warning when I switched to php 8.3.6. My WordPress version is 6.5.2

Warning: Attempt to read property "id" on array in plugins/helpie-faq/vendor/pauple/pluginator/src/Library/freemius/includes/managers/class-fs-plugin-manager.php on line 128

mralaminahamed commented 1 month ago

I have submitted a pull request to address the 'Attempt to read property on array' warning that occurs when using the Freemius WordPress SDK with PHP 8.3.6 and WordPress 6.5.2.

The proposed changes ensure proper handling of the $module variable in the load method to prevent the warning. I have tested the fix locally, and all existing tests continue to pass.