Skip to content

Commit

Permalink
Internal: Exercise: Improve removeFromList() definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed May 13, 2022
1 parent e3e7a39 commit b128b2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/exercise/question.class.php
Expand Up @@ -1351,11 +1351,11 @@ public function addToList($exerciseId, $fromSave = false)
* @author Olivier Brouckaert
*
* @param int $exerciseId - exercise ID
* @param int $courseId
* @param int $courseId The ID of the course, to avoid deleting re-used questions
*
* @return bool - true if removed, otherwise false
*/
public function removeFromList($exerciseId, $courseId = 0)
public function removeFromList(int $exerciseId, int $courseId = 0): bool
{
$table = Database::get_course_table(TABLE_QUIZ_TEST_QUESTION);
$id = (int) $this->iid;
Expand Down

0 comments on commit b128b2b

Please sign in to comment.