Skip to content

Commit e409a9f

Browse files
committed
PHP 7.1 (Can't wait until that's dead)!
Signed-off-by: Kevin Provance <[email protected]>
1 parent 268cef9 commit e409a9f

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

redux-core/inc/classes/class-redux-field.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ public function media_query( string $style_data = '' ) {
232232
/**
233233
* CSS for field output, if set.
234234
*
235-
* @param string|null $style CSS string.
235+
* @param string|array|null $style CSS string.
236236
*/
237-
public function output( ?string $style = '' ) {
237+
public function output( $style = '' ) {
238238
if ( '' !== $style ) {
239239

240240
// Force output value into an array.

redux-core/inc/fields/color/class-redux-color.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function css_style( $data ): string {
126126
/**
127127
* Output CSS styling.
128128
*
129-
* @param string $style CSS style.
129+
* @param string|null|array $style CSS style.
130130
*/
131131
public function output( $style = '' ) {
132132
if ( ! empty( $this->value ) ) {

redux-core/inc/fields/color_palette/class-redux-color-palette.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function render() {
8484
/**
8585
* CSS output.
8686
*
87-
* @param string $style CSS data.
87+
* @param string|null|array $style CSS data.
8888
*/
8989
public function output( $style = '' ) {
9090
if ( ! empty( $this->value ) ) {

redux-core/inc/fields/color_rgba/class-redux-color-rgba.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function css_style( $data ): string {
242242
* @since 1.0.0
243243
* @access public
244244
*
245-
* @param string $style css data.
245+
* @param string|null|array $style css data.
246246
*
247247
* @return void
248248
*/

redux-core/inc/fields/link_color/class-redux-link-color.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function css_style( $data ): array {
246246
/**
247247
* Output CSS/compiler.
248248
*
249-
* @param mixed $style Style to output.
249+
* @param string|null|array $style Style to output.
250250
*/
251251
public function output( $style = '' ) {
252252
if ( ! empty( $style ) ) {

redux-core/inc/fields/sorter/class-redux-sorter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public function enqueue() {
220220
* @return array Params to be saved as a javascript object accessable to the UI.
221221
* @since Redux_Framework 3.1.5
222222
*/
223-
public function localize( $field, $value = '' ): array {
223+
public function localize( array $field, string $value = '' ): array {
224224
$params = array();
225225

226226
if ( isset( $field['limits'] ) && ! empty( $field['limits'] ) ) {

redux-core/inc/fields/spinner/class-redux-spinner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function enqueue() {
148148
/**
149149
* CSS/compiler output.
150150
*
151-
* @param string $style CSS styles.
151+
* @param string|null|array $style CSS styles.
152152
*/
153153
public function output( $style = '' ) {
154154
$style = '';

redux-core/inc/fields/typography/class-redux-typography.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function set_defaults() {
195195
*
196196
* @return array
197197
*/
198-
public function localize( $field, $value = '' ): array {
198+
public function localize( array $field, string $value = '' ): array {
199199
$params = array();
200200

201201
if ( true === $this->user_fonts && ! empty( $this->field['fonts'] ) ) {
@@ -1125,7 +1125,7 @@ public function css_style( $data ): string {
11251125
/**
11261126
* CSS Output to send to the page.
11271127
*
1128-
* @param string $style CSS styles.
1128+
* @param string|null|array $style CSS styles.
11291129
*/
11301130
public function output( $style = '' ) {
11311131
$font = $this->value;

sample/sections/pro-fields/icon-select.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
// Disable auto-enqueue of stylesheet on the front-end.
3232
'enqueue_frontend' => false,
33-
'stylesheet' => 'https://use.fontawesome.com/releases/v5.6.3/css/all.css',
33+
'stylesheet' => 'https://use.fontawesome.com/releases/v5.15.3/css/all.css',
3434

3535
// If needed to initialize the icon.
3636
'prefix' => 'fa',

0 commit comments

Comments
 (0)