diff --git a/includes/Framework/Utilities/AsyncRequest.php b/includes/Framework/Utilities/AsyncRequest.php index b29a96ec8..17f6d3119 100644 --- a/includes/Framework/Utilities/AsyncRequest.php +++ b/includes/Framework/Utilities/AsyncRequest.php @@ -35,16 +35,6 @@ abstract class AsyncRequest { /** @var array request data */ protected $data = []; - /** @var array query arguments */ - protected $query_args; - - /** @var string query URL */ - protected $query_url; - - /** @var array request arguments */ - protected $request_args; - - /** * Initiate a new async request * @@ -97,6 +87,8 @@ protected function get_query_args() { // Check if a child class has defined this property for custom query args if ( property_exists( $this, 'query_args' ) ) { + // Dynamic property; not defined in the parent class, and not a true lint error + // phpcs:ignore return $this->query_args; } @@ -117,6 +109,8 @@ protected function get_query_url() { // Check if a child class has defined this property for a custom URL if ( property_exists( $this, 'query_url' ) ) { + // Dynamic property; not defined in the parent class, and not a true lint error + // phpcs:ignore return $this->query_url; } @@ -136,6 +130,8 @@ protected function get_request_args() { // Check if a child class has defined this property for custom request args if ( property_exists( $this, 'request_args' ) ) { + // Dynamic property; not defined in the parent class, and not a true lint error + // phpcs:ignore return $this->request_args; }