Open ronlinet opened 4 years ago
array_diff(): Argument #2 is not an array
Logical and in https://github.com/fcosrno/exam-php/blob/master/src/Grade.php#L62 fix the issue. if( is_array($this->questions[$questionKey]['answer']) and is_array($submittedAnswer) )
and
if( is_array($this->questions[$questionKey]['answer']) and is_array($submittedAnswer) )
array_diff(): Argument #2 is not an array