Skip to content

Commit

Permalink
0033058: Pre8 0033057: Pre8 ILIAS-Learning Module error "Argument #1
Browse files Browse the repository at this point in the history
…($additionalContentEditingMode) must be of type string, null given,
  • Loading branch information
mbecker-databay committed Jul 14, 2022
1 parent f2958e7 commit 0473582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/TestQuestionPool/classes/class.assQuestion.php
Original file line number Diff line number Diff line change
Expand Up @@ -3476,9 +3476,9 @@ public function getAdditionalContentEditingMode() : string
return $this->additionalContentEditingMode;
}

public function setAdditionalContentEditingMode(string $additionalContentEditingMode) : void
public function setAdditionalContentEditingMode(?string $additionalContentEditingMode) : void
{
if (!in_array($additionalContentEditingMode, $this->getValidAdditionalContentEditingModes())) {
if (!in_array((string) $additionalContentEditingMode, $this->getValidAdditionalContentEditingModes())) {
throw new ilTestQuestionPoolException('invalid additional content editing mode given: ' . $additionalContentEditingMode);
}

Expand Down

0 comments on commit 0473582

Please sign in to comment.