From 235ce5716edc2f7cbe80fdccf26eac7269587839 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 08 Jun 2026 04:38:18 +0000
Subject: [PATCH] =FavouritesManager.php and FavouritesRoutes.php fixes. Moving all logic to FavouritesManager.php. Still some left to do

---
 inc/registrar/helpers/MakeCalendarType.php |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/inc/registrar/helpers/MakeCalendarType.php b/inc/registrar/helpers/MakeCalendarType.php
index 9ad4d76..be83235 100644
--- a/inc/registrar/helpers/MakeCalendarType.php
+++ b/inc/registrar/helpers/MakeCalendarType.php
@@ -12,7 +12,7 @@
 class MakeCalendarType {
 	protected string $slug;
 	protected string $postType;
-	protected Registrar $registrar;
+	private Registrar $registrar;
 	public function __construct(string $slug, Registrar $registrar) {
 		$this->slug = $slug;
 		$this->postType = jvbCheckBase($slug);
@@ -25,6 +25,13 @@
 		add_action('init', [$this, 'addCalendarRewrites']);
 	}
 
+
+	public function __debugInfo() {
+		$vars = get_object_vars($this);
+		unset($vars['registrar']);
+		return $vars;
+	}
+
 	protected function addCalendarFields():void
 	{
 

--
Gitblit v1.10.0