Fix warnings "PHP Deprecated: Creation of dynamic property".

This commit is contained in:
Denis Dvali 2023-04-24 21:12:53 +04:00
parent 56b63ada60
commit d428a51606
6 changed files with 49 additions and 0 deletions

View File

@ -23,6 +23,20 @@ class WC_WCCOM_Site_Installation_Manager {
'activate_product',
);
/**
* The product ID.
*
* @var int
*/
protected $product_id;
/**
* The idempotency key.
*
* @var string
*/
protected $idempotency_key;
/**
* Constructor.
*

View File

@ -15,6 +15,13 @@ defined( 'ABSPATH' ) || exit;
* WC_WCCOM_Site_Installation_Step_Activate_Product Class
*/
class WC_WCCOM_Site_Installation_Step_Activate_Product implements WC_WCCOM_Site_Installation_Step {
/**
* The current installation state.
*
* @var WC_WCCOM_Site_Installation_State
*/
protected $state;
/**
* Constructor.
*

View File

@ -15,6 +15,13 @@ defined( 'ABSPATH' ) || exit;
* WC_WCCOM_Site_Installation_Step_Download_Product class
*/
class WC_WCCOM_Site_Installation_Step_Download_Product implements WC_WCCOM_Site_Installation_Step {
/**
* The current installation state.
*
* @var WC_WCCOM_Site_Installation_State
*/
protected $state;
/**
* Constructor.
*

View File

@ -15,6 +15,13 @@ defined( 'ABSPATH' ) || exit;
* WC_WCCOM_Site_Installation_Step_Get_Product_Info class
*/
class WC_WCCOM_Site_Installation_Step_Get_Product_Info implements WC_WCCOM_Site_Installation_Step {
/**
* The current installation state.
*
* @var WC_WCCOM_Site_Installation_State
*/
protected $state;
/**
* Constructor.
*

View File

@ -12,6 +12,13 @@ defined( 'ABSPATH' ) || exit;
* WC_WCCOM_Site_Installation_Step_Move_Product class
*/
class WC_WCCOM_Site_Installation_Step_Move_Product implements WC_WCCOM_Site_Installation_Step {
/**
* The current installation state.
*
* @var WC_WCCOM_Site_Installation_State
*/
protected $state;
/**
* Constructor.
*

View File

@ -15,6 +15,13 @@ defined( 'ABSPATH' ) || exit;
* WC_WCCOM_Site_Installation_Step_Unpack_Product class
*/
class WC_WCCOM_Site_Installation_Step_Unpack_Product implements WC_WCCOM_Site_Installation_Step {
/**
* The current installation state.
*
* @var WC_WCCOM_Site_Installation_State
*/
protected $state;
/**
* Constructor.
*