Skip to content

Commit aae6f55

Browse files
authored
Formatting: Fixed PHP 8.2 warnings in a handful of snippets.
* `gw-populate-date.php`: Fixed PHP 8.2 warnings on many snippets. * `gw-populate-date.php`: Fixed PHP 8.2 warnings on many snippets. * `gw-populate-date.php`: Fixed PHP 8.2 warnings on many snippets.
1 parent e1597cd commit aae6f55

8 files changed

+18
-1
lines changed

gp-ecommerce-fields/gpecf-deduct-deposit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
*/
1818
class GW_Deduct_Deposit {
1919

20+
private $_args = array();
21+
2022
public function __construct( $args ) {
2123

2224
$this->_args = wp_parse_args( $args, array(

gp-nested-forms/gpnf-delay-child-notifications-for-parent-payment.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
*/
1515
class GW_GPNF_Delay_Child_Notifications {
1616

17+
private $_args = array();
18+
1719
public function __construct( $args = array() ) {
1820

1921
// set our default arguments, parse against the provided arguments, and store for use throughout the class

gravity-forms/gw-choice-counter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class GW_Choice_Count {
1616

1717
private static $is_script_output;
1818

19+
private $_args = array();
20+
1921
function __construct( $args ) {
2022

2123
$this->_args = wp_parse_args( $args, array(

gravity-forms/gw-min-and-max-character-limit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
*/
1515
class GW_Minimum_Characters {
1616

17+
private $_args = array();
18+
1719
public function __construct( $args = array() ) {
1820

1921
// make sure we're running the required minimum version of Gravity Forms

gravity-forms/gw-populate-date.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ class GW_Populate_Date {
1313

1414
protected static $is_script_output = false;
1515

16+
private $_args = array();
17+
private $_field_values = array();
18+
1619
public function __construct( $args = array() ) {
1720

1821
// set our default arguments, parse against the provided arguments, and store for use throughout the class

gravity-forms/gw-quantity-as-decimal.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
class GW_Quantity_Decimal {
1616

1717
private static $_current_form;
18+
private $form_id;
19+
private $global = false;
20+
private $field_ids = array();
1821

1922
function __construct( $form_id, $field_ids = array(), $global = false ) {
2023

gravity-forms/gw-require-list-columns.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
*/
66
class GWRequireListColumns {
77

8-
private $field_ids;
8+
private $field_ids = array();
9+
private $required_cols = array();
910

1011
public static $fields_with_req_cols = array();
1112

gravity-forms/gw-require-unique-values.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
*/
1717
class GW_Require_Unique_Values {
1818

19+
private $_args = array();
20+
1921
public function __construct( $args = array() ) {
2022

2123
// set our default arguments, parse against the provided arguments, and store for use throughout the class

0 commit comments

Comments
 (0)