php version bug.
pls change to
protected function has_subscription_expired( $subscription ) {
return false;
}
After this change, appears another php notices:
PHP Notice: Trying to get property 'product' of non-object in /web/htdocs/www.***.**/home/wp-content/plugins/wordpress-seo-premium/vendor/yoast/wordpress-seo/inc/class-addon-manager.php on line 224,347,351,352,353,354,355,356,357,358,364,367
PHP Notice: Trying to get property 'version' of non-object in /web/htdocs/www.***.**/home/wp-content/plugins/wordpress-seo-premium/vendor/yoast/wordpress-seo/inc/class-addon-manager.php on line 224
PHP Notice: Trying to get property 'changelog' of non-object in /web/htdocs/www.***.**/home/wp-content/plugins/wordpress-seo-premium/vendor/yoast/wordpress-seo/inc/class-addon-manager.php on line 347
PHP Notice: Trying to get property 'name' of non-object in /web/htdocs/www.***.**/home/wp-content/plugins/wordpress-seo-premium/vendor/yoast/wordpress-seo/inc/class-addon-manager.php on line 352
PHP Notice: Trying to get property 'slug' of non-object in /web/htdocs/www.***.**/home/wp-content/plugins/wordpress-seo-premium/vendor/yoast/wordpress-seo/inc/class-addon-manager.php on line 353,364,367
PHP Notice: Trying to get property 'store_url' of non-object in /web/htdocs/www.***.**t/home/wp-content/plugins/wordpress-seo-premium/vendor/yoast/wordpress-seo/inc/class-addon-manager.php on line 354,356
PHP Notice: Trying to get property 'last_updated' of non-object in /web/htdocs/www.***.**/home/wp-content/plugins/wordpress-seo-premium/vendor/yoast/wordpress-seo/inc/class-addon-manager.php on line 355
PHP Notice: Trying to get property 'download' of non-object in /web/htdocs/www.***.**/home/wp-content/plugins/wordpress-seo-premium/vendor/yoast/wordpress-seo/inc/class-addon-manager.php on line 357,358