WC_Meta_Data | PHPDoc Fix (#20371)
This commit is contained in:
parent
9aca31f6ce
commit
7f6fb734dd
|
@ -45,7 +45,7 @@ class WC_Meta_Data implements JsonSerializable {
|
|||
/**
|
||||
* When converted to JSON.
|
||||
*
|
||||
* @return object
|
||||
* @return object|array
|
||||
*/
|
||||
public function jsonSerialize() {
|
||||
return $this->get_data();
|
||||
|
@ -73,6 +73,8 @@ class WC_Meta_Data implements JsonSerializable {
|
|||
* by `empty` and `isset`.
|
||||
*
|
||||
* @param string $key Key to check if set.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function __isset( $key ) {
|
||||
return array_key_exists( $key, $this->current_data );
|
||||
|
|
Loading…
Reference in New Issue