Skip to content

Commit

Permalink
Prevent possible type error during `WC_Install::create_options()
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeatorres committed Mar 20, 2024
1 parent fda79df commit 1ae8c0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ protected function get_settings_for_section_core( $section_id ) {
*/
public function get_sections() {
$sections = $this->get_own_sections();
return apply_filters( 'woocommerce_get_sections_' . $this->id, $sections );
return (array) apply_filters( 'woocommerce_get_sections_' . $this->id, $sections );
}

/**
Expand Down

0 comments on commit 1ae8c0c

Please sign in to comment.