Skip to content

Commit

Permalink
Renaming imported class for PHP8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsharman committed Mar 1, 2023
1 parent f3e7262 commit 24900c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use \qtism\data\QtiComponent;
use \qtism\data\expressions\operators\IsNull;
use \qtism\data\rules\ResponseRuleCollection;
use \qtism\data\expressions\operators\Match;
use \qtism\data\expressions\operators\MatchOperator;
use \qtism\data\expressions\operators\Equal;
use \qtism\data\expressions\operators\Sum;
use \qtism\data\expressions\BaseValue;
Expand Down Expand Up @@ -246,7 +246,7 @@ protected function processConditionBranch(QtiComponent $conditionBranch)
$results['unattempted'] = $outcomeValues[0];
break;

case $expression instanceof Match:
case $expression instanceof MatchOperator:
// correct answer, get the first response rule as there should only be one.
$responseId = $expression->getExpressions()[0]->getIdentifier();
$responseRules = $conditionBranch->getResponseRules();
Expand Down

0 comments on commit 24900c1

Please sign in to comment.