From a9654f00c8fbc9934289d761843ddd071025013f Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 28 Aug 2026 17:20:28 +0000
Subject: [PATCH] =PHPStorm Code Inspection: fixed class reference errors (from getting rid of JVB() and replacing with direct class::getInstance; as well as general code sniffing, etc
---
inc/rest/Response.php | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/inc/rest/Response.php b/inc/rest/Response.php
index d77980d..51c4973 100644
--- a/inc/rest/Response.php
+++ b/inc/rest/Response.php
@@ -26,9 +26,8 @@
private array $data = [];
private int $status = 200;
private array $headers = [];
- private ?WP_REST_Response $response = null;
- /**
+ /**
* Create a success response
*/
public static function success(array $data = [], int $status = 200): WP_REST_Response
@@ -430,8 +429,3 @@
return self::success($data);
}
}
-
-/**
- * Alias for backward compatibility
- */
-class ResponseBuilder extends Response {}
--
Gitblit v1.10.0