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 Oct 31, 2024
1 parent 91bd3ae commit cb5412b
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 = [] ) {

Check failure on line 182 in admin/class-openedx-commerce-admin.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Short array syntax is not allowed

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

Check failure on line 208 in admin/class-openedx-commerce-admin.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Short array syntax is not allowed
) {
return new Openedx_Commerce_Post_Type( $post_type, $plural, $single, $description, $options );
}
Expand Down

0 comments on commit cb5412b

Please sign in to comment.