| @@ -43,11 +43,12 @@ | ||
| 43 | 43 | * @access public |
| 44 | 44 | * |
| 45 | 45 | * @param array $data Optional. Element data. Default is an empty array. |
| 46 | 46 | * @param array|null $args Optional. Element default arguments. Default is null. |
| 47 | + * | |
| 47 | 48 | */ |
| 48 | - public function __construct( array $data = [], ?array $args = null ) { | |
| 49 | - ++self::$counter; | |
| 49 | + public function __construct( array $data = [], array $args = null ) { | |
| 50 | + self::$counter++; | |
| 50 | 51 | |
| 51 | 52 | $this->id = self::$counter; |
| 52 | 53 | |
| 53 | 54 | parent::__construct( $data, $args ); |
| @@ -121,15 +122,15 @@ | ||
| 121 | 122 | * |
| 122 | 123 | * Retrieve the fields from the current repeater control. |
| 123 | 124 | * |
| 124 | 125 | * @since 1.5.0 |
| 125 | - * @deprecated 2.1.0 Use `get_controls()` method instead. | |
| 126 | + * @deprecated 2.1.0 Use `Repeater::get_controls()` instead. | |
| 126 | 127 | * @access public |
| 127 | 128 | * |
| 128 | 129 | * @return array Repeater fields. |
| 129 | 130 | */ |
| 130 | 131 | public function get_fields() { |
| 131 | - _deprecated_function( __METHOD__, '2.1.0', 'get_controls()' ); | |
| 132 | + _deprecated_function( __METHOD__, '2.1.0', __CLASS__ . '::get_controls()' ); | |
| 132 | 133 | |
| 133 | 134 | return array_values( $this->get_controls() ); |
| 134 | 135 | } |
| 135 | 136 | |