wordpress-sdk
wordpress-sdk copied to clipboard
Warning with PHP 8.3.6
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
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.