Closed (outdated)
Project:
Quiz
Version:
6.x-5.x-dev
Component:
Code - Quiz core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2009 at 18:00 UTC
Updated:
15 Jul 2016 at 20:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
falcon commentedThe php type hinting isn't very useful to us IMO. Hopefully php will support type hinting for primitive types in the future. Attached is a patch showing how type hinting has been added to the question-types.
Comment #2
falcon commentedComment #3
turadg commentedI'm reopening this since there are a lot more signatures that can use it.
Unfortunately PHP probably won't ever have type hinting for scalars. We could start using asserts though. They don't cost performance in production (assuming assertion checking is turned off) and they act as type documentation.
Comment #4
falcon commentedComment #5
djdevinThis issue is being closed because it was filed against a version that is no longer supported. If the issue still persists in the latest version of Quiz, please open a new issue.