diff --git a/includes/class-wc-data-store.php b/includes/class-wc-data-store.php index 983c12fd682..c7e03d12486 100644 --- a/includes/class-wc-data-store.php +++ b/includes/class-wc-data-store.php @@ -119,6 +119,8 @@ class WC_Data_Store { /** * Re-run the constructor with the object type. + * + * @throws Exception When validation fails. */ public function __wakeup() { $this->__construct( $this->object_type ); @@ -130,6 +132,7 @@ class WC_Data_Store { * @param string $object_type Name of object. * * @since 3.0.0 + * @throws Exception When validation fails. * @return WC_Data_Store */ public static function load( $object_type ) {