@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | * @param array $attributes Block attributes. |
| 124 | 124 | * @param string $content string Block content. |
| 125 | 125 | * |
| 126 | - * @return mixed |
|
| 126 | + * @return string |
|
| 127 | 127 | */ |
| 128 | 128 | public function render_gutenberg_block( $attributes, $content ) { |
| 129 | 129 | $product_id = $attributes['productId']; |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | * Allows custom post types to be used by REST API. |
| 361 | 361 | * @param $post_types |
| 362 | 362 | * @see hook 'rest_api_allowed_post_types' |
| 363 | - * @return array |
|
| 363 | + * @return string[] |
|
| 364 | 364 | */ |
| 365 | 365 | function allow_rest_api_types( $post_types ) { |
| 366 | 366 | $post_types[] = self::$post_type_order; |