Minor: Update params/return types for Learnpath::get_complete_items_count() - refs BT#19044

pull/4017/head
Yannick Warnier 3 years ago
parent 9ac5aeb681
commit 9bbe86a252
  1. 4
      public/main/lp/learnpath.class.php

@ -1071,11 +1071,11 @@ class learnpath
/**
* Gets the number of items currently completed.
*
* @param bool $failedStatusException flag to determine the failed status is not considered progressed
* @param bool Flag to determine the failed status is not considered progressed
*
* @return int The number of items currently completed
*/
public function get_complete_items_count($failedStatusException = false)
public function get_complete_items_count(bool $failedStatusException = false): int
{
$i = 0;
$completedStatusList = [

Loading…
Cancel
Save