| @@ -68,8 +68,8 @@ | ||
| 68 | 68 | /** |
| 69 | 69 | * Encode the DTO instance into a raw string. By default, returns a JSON string. |
| 70 | 70 | */ |
| 71 | 71 | public function encode(): string { |
| 72 | - $encoded = wp_json_encode( $this, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE ); | |
| 72 | + $encoded = \wp_json_encode( $this, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE ); | |
| 73 | 73 | return $encoded ? $encoded : ''; |
| 74 | 74 | } |
| 75 | 75 | } |