From 7e22e75280dc604636f7494013ecaf62564803d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timi-Artturi=20M=C3=A4kel=C3=A4?= Date: Wed, 20 Dec 2023 10:48:40 +0200 Subject: [PATCH] Fixed missing class variable declarations --- CHANGELOG.md | 7 +++++++ src/Field.php | 35 ++++++++++++++++++++++++++++++++++ src/Field/Common/Groupable.php | 7 +++++++ src/Field/Flexible/Layout.php | 7 +++++++ 4 files changed, 56 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b7629c..a003742 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. [Unreleased] +## [deprecated-missing-class-vars] + +### Fixed +- Fixed missing class variable declarations. + +[Released] + ## [1.39.0] ### Added diff --git a/src/Field.php b/src/Field.php index f72f67b..1f43586 100644 --- a/src/Field.php +++ b/src/Field.php @@ -149,6 +149,41 @@ abstract class Field { */ static public $indexing = false; + /** + * Field type. + * + * @var string + */ + protected $type = ''; + + /** + * Field wrapper. + * + * @var array + */ + protected $wrapper = []; + + /** + * Registered field as a string for debugging purposes. + * + * @var string + */ + protected $registered = ''; + + /** + * Possible parent field object. + * + * @var mixed + */ + protected $parent; + + /** + * Fields variable name. + * + * @var string + */ + protected $fields_var = ''; + /** * Constructor. * diff --git a/src/Field/Common/Groupable.php b/src/Field/Common/Groupable.php index 24ef519..24c76b8 100644 --- a/src/Field/Common/Groupable.php +++ b/src/Field/Common/Groupable.php @@ -14,6 +14,13 @@ */ trait Groupable { + /** + * Possible parent object. + * + * @var mixed + */ + protected $parent; + /** * Export current field and sub fields to acf compatible format * diff --git a/src/Field/Flexible/Layout.php b/src/Field/Flexible/Layout.php index 6b8c7f1..b7a17ed 100644 --- a/src/Field/Flexible/Layout.php +++ b/src/Field/Flexible/Layout.php @@ -25,6 +25,13 @@ class Layout implements GroupableInterface { */ use MinMax; + /** + * Field type + * + * @var string + */ + protected $active; + /** * Layout label *