Fix PHPStan errors

This commit is contained in:
Amine Ben hammou
2019-03-04 17:01:24 +01:00
committed by M. Shull
parent 3ff55d85a9
commit ab097d356a
14 changed files with 33 additions and 14 deletions

View File

@@ -28,7 +28,7 @@ class Updater {
function init() {
WPFunctions::get()->addFilter('pre_set_site_transient_update_plugins', array($this, 'checkForUpdate'));
}
function checkForUpdate($update_transient) {
if (!is_object($update_transient)) {
$update_transient = new \stdClass;