Skip to content

Commit b782f27

Browse files
committed
fix: convert arrow to anonymous functino to support php 7.3 and below
1 parent 3423b8e commit b782f27

File tree

1 file changed

+3
-2
lines changed
  • src/plugins/global-settings/preset-controls

1 file changed

+3
-2
lines changed

src/plugins/global-settings/preset-controls/index.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,10 @@ public function generate_css_variables_styles( $property, $presets, $prefix, $is
176176
* @return mixed
177177
*/
178178
public function deepGet( $array, $keys ) {
179-
return array_reduce( $keys, fn( $value, $key ) => $value[ $key ] ?? null, $array );
179+
return array_reduce( $keys, function( $value, $key ) {
180+
return $value[ $key ] ?? null;
181+
}, $array );
180182
}
181-
182183
/**
183184
* Add our global preset control styles.
184185
*

0 commit comments

Comments
 (0)