As was mentioned in #550278: Support hook_diff() to show changes across revisions, AbstractQuizQuestionResponse doesn't contains 'implements' string. I've wrote my own question type, and I don't want to use AbstractQuizQuestionResponse, but the QuizQuestionResponse. So, I have several problems with default arguments in __constructor and in formatReport. It looks like now the default arguments are used only in quiz_question.theme.inc, so I've corrected calls in that file.
In the Quiz-4 this problem is fixed by adding default arguments to the interface. Maybe, you should commit some changes to the Quiz-3 too? If it won't cause any problem, the same changes as it was done for quiz 4 can be done.
The patch, which adds default arguments to interface, is attached. Note: it's not tested.
| Comment | File | Size | Author |
|---|---|---|---|
| quiz-question-core-design.patch | 1.07 KB | dpantele |
Comments
Comment #1
mbutcher commentedIf the patch is untested, I won't do anything with it. Please test and then update this ticket.
Matt
Comment #2
turadg commentedThis seems safe since it's the same as was done in 4.x. Note though that the patch is backwards. (PanDa777, it patches _from_ your revised version back to the broken version.)
Still, it would be best to test it in 3.x since there may be critical differences between 3 and 4.
Comment #3
dpantele commentedIt looks like it was fixed in last 3.x-dev...