From c3cd0dcef04df89836247d5baf3cf19025714478 Mon Sep 17 00:00:00 2001 From: Doeke Norg Date: Wed, 6 Mar 2024 15:07:06 +0100 Subject: [PATCH] remove 8.2 deprecations --- future/includes/class-gv-entry-gravityforms.php | 7 +++++++ future/includes/class-gv-field-internal.php | 7 +++++++ future/includes/class-gv-form-gravityforms.php | 7 +++++++ future/includes/class-gv-template-field.php | 7 +++++++ includes/class-template.php | 8 +++++++- readme.txt | 4 ++++ 6 files changed, 39 insertions(+), 1 deletion(-) diff --git a/future/includes/class-gv-entry-gravityforms.php b/future/includes/class-gv-entry-gravityforms.php index 2ca6f05fe..f29b077a5 100644 --- a/future/includes/class-gv-entry-gravityforms.php +++ b/future/includes/class-gv-entry-gravityforms.php @@ -20,6 +20,13 @@ class GF_Entry extends Entry implements \ArrayAccess { */ public static $backend = 'gravityforms'; + /** + * The entry slug. + * + * @var string + */ + public $slug; + /** * Initialization. */ diff --git a/future/includes/class-gv-field-internal.php b/future/includes/class-gv-field-internal.php index 81b7ea26c..b525d61e1 100644 --- a/future/includes/class-gv-field-internal.php +++ b/future/includes/class-gv-field-internal.php @@ -17,6 +17,13 @@ class Internal_Field extends Field { */ public $field; + /** + * The field type. + * + * @var string + */ + public $type; + /** * Create self from a configuration array. * diff --git a/future/includes/class-gv-form-gravityforms.php b/future/includes/class-gv-form-gravityforms.php index bb5f0ae19..469f7ce02 100644 --- a/future/includes/class-gv-form-gravityforms.php +++ b/future/includes/class-gv-form-gravityforms.php @@ -20,6 +20,13 @@ class GF_Form extends Form implements \ArrayAccess { */ public static $backend = self::BACKEND_GRAVITYFORMS; + /** + * The form object. + * + * @var array + */ + public $form; + /** * Initialization. */ diff --git a/future/includes/class-gv-template-field.php b/future/includes/class-gv-template-field.php index 2ffffe936..04ee7b4dd 100644 --- a/future/includes/class-gv-template-field.php +++ b/future/includes/class-gv-template-field.php @@ -72,6 +72,13 @@ abstract class Field_Template extends Template { */ public static $slug; + /** + * THe callback that registers the template files. + * + * @var callable + */ + private $_add_id_specific_templates_callback; + /** * Initializer. * diff --git a/includes/class-template.php b/includes/class-template.php index 1da7e1d6c..0a4720072 100644 --- a/includes/class-template.php +++ b/includes/class-template.php @@ -148,6 +148,13 @@ class GravityView_View extends \GV\Gamajo_Template_Loader { */ static $instance = null; + /** + * The current field data. + * + * @deprecated 1.6.2 + */ + public $field_data; + /** * Construct the view object * @@ -998,4 +1005,3 @@ public function _include( $path ) { } } } - diff --git a/readme.txt b/readme.txt index 93dc2fb5c..b308e7a11 100644 --- a/readme.txt +++ b/readme.txt @@ -21,6 +21,10 @@ Beautifully display your Gravity Forms entries. Learn more on [gravitykit.com](h == Changelog == += develop = + +* Fixed PHP 8.2 deprecation notices. + = 2.20.2 on March 4, 2024 = This release enhances performance by optimizing caching and managing transients more effectively.