WC_Meta_Data | PHPDoc Fix (#20371)

This commit is contained in:
TheDramatist 2018-06-05 18:29:56 +06:00 committed by Mike Jolley
parent 9aca31f6ce
commit 7f6fb734dd
1 changed files with 3 additions and 1 deletions

View File

@ -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 );