diff --git a/includes/entities/class-fs-plugin-plan.php b/includes/entities/class-fs-plugin-plan.php index e89e2bce..b6da26f0 100755 --- a/includes/entities/class-fs-plugin-plan.php +++ b/includes/entities/class-fs-plugin-plan.php @@ -13,7 +13,6 @@ /** * Class FS_Plugin_Plan * - * @property FS_Pricing[] $pricing */ class FS_Plugin_Plan extends FS_Entity { diff --git a/includes/entities/class-fs-site.php b/includes/entities/class-fs-site.php index e0c1fab4..1ab14582 100755 --- a/includes/entities/class-fs-site.php +++ b/includes/entities/class-fs-site.php @@ -10,15 +10,15 @@ exit; } - /** - * @property int $blog_id - */ - #[AllowDynamicProperties] class FS_Site extends FS_Scope_Entity { /** * @var number */ public $site_id; + /** + * @var int + */ + public $blog_id; /** * @var number */ diff --git a/includes/entities/class-fs-user.php b/includes/entities/class-fs-user.php index a62cfe14..3aed0982 100755 --- a/includes/entities/class-fs-user.php +++ b/includes/entities/class-fs-user.php @@ -48,6 +48,19 @@ function __construct( $user = false ) { parent::__construct( $user ); } + /** + * This method removes the deprecated 'is_beta' property from the serialized data. + * Should clean up the serialized data to avoid PHP 8.2 warning on next execution. + * + * @return void + */ + function __wakeup() { + if ( property_exists( $this, 'is_beta' ) ) { + // If we enter here, and we are running PHP 8.2, we already had the warning. But we sanitize data for next execution. + unset( $this->is_beta ); + } + } + function get_name() { return trim( ucfirst( trim( is_string( $this->first ) ? $this->first : '' ) ) . ' ' . ucfirst( trim( is_string( $this->last ) ? $this->last : '' ) ) ); } diff --git a/start.php b/start.php index 6aa8f2d4..a615acc3 100644 --- a/start.php +++ b/start.php @@ -15,7 +15,7 @@ * * @var string */ - $this_sdk_version = '2.10.0.1'; + $this_sdk_version = '2.10.0.2'; #region SDK Selection Logic --------------------------------------------------------------------