From 5b50afdcafd150186ea5c7b0e1cad98065590b35 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 28 Aug 2026 18:44:28 +0000
Subject: [PATCH] =A few more phpStorm suggestions, mainly in PHPDocs

---
 inc/rest/RestRouteManager.php |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/inc/rest/RestRouteManager.php b/inc/rest/RestRouteManager.php
index 6caa539..b714389 100644
--- a/inc/rest/RestRouteManager.php
+++ b/inc/rest/RestRouteManager.php
@@ -95,7 +95,7 @@
      *
      * @return bool|WP_Error Whether or not we can proceed
      */
-    public function checkPermission(WP_REST_Request $request):bool
+    public function checkPermission(WP_REST_Request $request):bool|WP_Error
     {
         // Check rate limits first
         if (!$this->rate_limiter->checkLimit($request)) {
@@ -564,15 +564,13 @@
 	}
 
 	// ========== HTTP CACHING METHODS ==========
-
 	/**
 	 * Check HTTP caching headers (ETag and If-Modified-Since)
 	 * Returns 304 Not Modified if content hasn't changed
-	 *
-	 * @param WP_REST_Request $request The REST request
-	 * @param string|array $content_types Content type(s) to check timestamps for
-	 * @param array $additional_params Additional params for ETag uniqueness (e.g., user_id, filters)
-	 * @return WP_REST_Response|null Returns 304 response if not modified, null to continue processing
+	 * @param WP_REST_Request $request
+	 * @param int|string|array $key Content type(s) to check timestamps for
+	 * @param string|array $group Additional params for ETag uniqueness (e.g., user_id, filters)
+	 * @return WP_REST_Response|false Returns 304 response if not modified, null to continue processing
 	 */
 	protected function checkHeaders(
 		WP_REST_Request $request,

--
Gitblit v1.10.0