wpengine / phpcompat

WordPress Plugin: PHP Compatibility Checker
https://wordpress.org/plugins/php-compatibility-checker/
121 stars 38 forks source link

PHP warnings Undefined array key and null given when updating none wordpress.org plugin #319

Open ipajen opened 1 year ago

ipajen commented 1 year ago

minor issue but when updating any plugin from github and not WordPress.org with https://github.com/afragen/git-updater following warnings exists from php-compatibility-checker in /wp-admin/update.php. When updating from WordPress.org then the warnings doesn't exist. Don't know how Premium plugins will behave, but could have the same issue.

Warning Undefined array key "plugins" wp-content/plugins/php-compatibility-checker/wpengine-phpcompat.php:170

Warning foreach() argument must be of type array|object, null given wp-content/plugins/php-compatibility-checker/wpengine-phpcompat.php:170