Skip to content

Commit

Permalink
fix: options is a required parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
MaferMazu committed Nov 1, 2024
1 parent 91bd3ae commit ff449f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/class-openedx-commerce-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function render_enrollment_info_form( $post ) {
*
* @return object Post type class object
*/
public function register_post_type( $post_type = '', $plural = '', $single = '', $description = '', array $options ) {
public function register_post_type( $post_type = '', $plural = '', $single = '', $description = '', array $options = array() ) {

if ( ! $post_type || ! $plural || ! $single ) {
return;
Expand All @@ -205,7 +205,7 @@ public function create_post_type(
$plural = '',
$single = '',
$description = '',
array $options
array $options = array()
) {
return new Openedx_Commerce_Post_Type( $post_type, $plural, $single, $description, $options );
}
Expand Down

0 comments on commit ff449f4

Please sign in to comment.