Skip to content

Commit 548477d

Browse files
committed
PHP updates
1 parent a07688d commit 548477d

17 files changed

+41
-26
lines changed

redux-core/assets/css/redux-fields.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redux-core/assets/css/redux-fields.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redux-core/inc/extensions/custom_fonts/class-redux-extension-custom-fonts.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* @noinspection PhpHierarchyChecksInspection
1111
* @noinspection PhpDocFinalChecksInspection
12+
* @noinspection PhpIgnoredClassAliasDeclaration
1213
*/
1314

1415
defined( 'ABSPATH' ) || exit;

redux-core/inc/extensions/customizer/class-redux-extension-customizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public function override_values( array $data ): array {
360360
*
361361
* @param object $control .
362362
*/
363-
public function render( $control ) {
363+
public function render( object $control ) {
364364
$field_id = str_replace( $this->parent->args['opt_name'] . '-', '', $control->redux_id );
365365
$field = $this->options[ $field_id ];
366366

redux-core/inc/extensions/google_maps/class-redux-extension-google-maps.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Redux_Extension_Google_Maps extends Redux_Extension_Abstract {
2929
*
3030
* @var string
3131
*/
32-
public $extension_name = 'Google Maps';
32+
public string $extension_name = 'Google Maps';
3333

3434
/**
3535
* ReduxFramework_extension_google_maps constructor.

redux-core/inc/extensions/google_maps/google_maps/class-redux-google-maps.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class Redux_Google_Maps extends Redux_Field {
2121
/**
2222
* API Key.
2323
*
24-
* @var string
24+
* @var string|null
2525
*/
26-
private $api_key = '';
26+
private ?string $api_key = '';
2727

2828
/**
2929
* Get field defaults.

redux-core/inc/extensions/icon_select/class-redux-extension-icon-select.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* @author Dovy Paukstys <dovy@reduxframework.com> & Kevin Provance <kevin.provance@gmail.com>
77
* @class Redux_Extension_Icon_Select
88
* @version 4.4.2
9+
*
10+
* @noinspection PhpIgnoredClassAliasDeclaration
911
*/
1012

1113
defined( 'ABSPATH' ) || exit;
@@ -33,7 +35,7 @@ class Redux_Extension_Icon_Select extends Redux_Extension_Abstract {
3335
*
3436
* @var string
3537
*/
36-
public $extension_name = 'Icon Select';
38+
public string $extension_name = 'Icon Select';
3739

3840
/**
3941
* ReduxFramework_Extension_Icon_Select constructor.

redux-core/inc/extensions/icon_select/icon_select/class-redux-icon-select.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ class Redux_Icon_Select extends Redux_Field {
2525
*
2626
* @var array
2727
*/
28-
private $stylesheet_url = array();
28+
private array $stylesheet_url = array();
2929

3030
/**
3131
* Stylesheet data array.
3232
*
3333
* @var array
3434
*/
35-
private $stylesheet_data = array();
35+
private array $stylesheet_data = array();
3636

3737
/**
3838
* Error flag to prevent render and enqueue.
3939
*
4040
* @var bool
4141
*/
42-
private $is_error = false;
42+
private bool $is_error = false;
4343
/**
4444
* ReduxFramework_Icon_Select constructor.
4545
*

redux-core/inc/extensions/import_export/class-redux-extension-import-export.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @class Redux_Extension_Import_Export
66
* @version 4.0.0
77
* @package Redux Framework
8+
*
9+
* @noinspection PhpIgnoredClassAliasDeclaration
810
*/
911

1012
defined( 'ABSPATH' ) || exit;
@@ -31,7 +33,7 @@ class Redux_Extension_Import_Export extends Redux_Extension_Abstract {
3133
*
3234
* @var bool
3335
*/
34-
public $is_field = false;
36+
public bool $is_field = false;
3537

3638
/**
3739
* Class Constructor. Defines the args for the extensions class

redux-core/inc/extensions/js_button/class-redux-extension-js-button.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Redux_Extension_Js_Button extends Redux_Extension_Abstract {
3131
*
3232
* @var string
3333
*/
34-
public $extension_name = 'JS Button';
34+
public string $extension_name = 'JS Button';
3535

3636
/**
3737
* Class Constructor. Defines the args for the extensions class

0 commit comments

Comments
 (0)