From 2d6e9058931d6239d411dc9cadf8200dff59bdcf Mon Sep 17 00:00:00 2001 From: jpwdesigns Date: Thu, 3 Jul 2025 10:31:35 -0400 Subject: [PATCH] Predefined properties Errors thrown on php 8.2. Adding these properties silences the deprecation warnings. Signed-off-by: jpwdesigns --- acf.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/acf.php b/acf.php index 950a10c..dc3a8af 100644 --- a/acf.php +++ b/acf.php @@ -80,6 +80,16 @@ class ACF */ public $instances = []; + /** + * Predefined properties to avoid dynamic property deprecation warnings. + */ + public $fields; + public $loop; + public $revisions; + public $validation; + public $form_front; + public $admin_tools; + /** * A dummy constructor to ensure ACF is only setup once. *