From e4b3940cceb1207d43e7af4dd183a53d976eff74 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 24 Sep 2025 20:15:18 -0300 Subject: [PATCH] fix: remove non-existent HVAC_Event_Cache dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves fatal error: 'Class "HVAC_Event_Cache" not found' - Removed strict typing for cache property - Made cache initialization optional with placeholder for future implementation - Prevents deployment blocking error 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- includes/class-hvac-event-form-builder.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/includes/class-hvac-event-form-builder.php b/includes/class-hvac-event-form-builder.php index fb0ef1eb..1d86a626 100644 --- a/includes/class-hvac-event-form-builder.php +++ b/includes/class-hvac-event-form-builder.php @@ -107,11 +107,11 @@ class HVAC_Event_Form_Builder extends HVAC_Form_Builder { ]; /** - * Cache instance for performance optimization + * Cache instance for performance optimization (optional) * - * @var HVAC_Event_Cache + * @var mixed */ - private HVAC_Event_Cache $cache; + private $cache = null; /** * Constructor @@ -123,9 +123,11 @@ class HVAC_Event_Form_Builder extends HVAC_Form_Builder { parent::__construct($nonce_action); $this->template_manager = HVAC_Event_Template_Manager::instance(); - $this->cache = HVAC_Event_Cache::instance(); $this->template_mode_enabled = $enable_templates; + // Initialize cache if available (not implemented yet) + // $this->cache = class_exists('HVAC_Event_Cache') ? HVAC_Event_Cache::instance() : null; + $this->init_event_form_hooks(); }