Skip to content

Commit

Permalink
Fix Psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
donnapep committed Jan 10, 2025
1 parent 9600583 commit 0c19b2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions includes/class-sensei-usage-tracking-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ private static function get_max_module_count() {
// Get modules for this course.
$module_count = wp_count_terms(
array(
'object_ids' => $course,
'object_ids' => (int) $course,
'taxonomy' => 'module',
)
);
Expand Down Expand Up @@ -831,7 +831,7 @@ private static function get_min_module_count() {
// Get modules for this course.
$module_count = wp_count_terms(
array(
'object_ids' => $courses[ $i ],
'object_ids' => (int) $courses[ $i ],
'taxonomy' => 'module',
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function render() {
* @since 1.9.0
*
* @param array $category_ids
* @return array
* @return int[]
*/
public function generate_term_ids( $categories = array() ) {

Expand Down

0 comments on commit 0c19b2e

Please sign in to comment.