Closed (fixed)
Project:
Flag
Version:
7.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
20 Apr 2014 at 11:01 UTC
Updated:
31 May 2015 at 15:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cs_shadow commentedAdd type hinting for several @params and @returns. Need review one this one to proceed further.
Comment #2
joachim commentedArgh, this is probably going to clash with the work I'm doing at #2202969: clean up flag() and its low-level helpers. I'd rather postpone it until that's in.
Comment #3
cs_shadow commentedMaybe this issue can be opened now, as the blocking issue has been closed.
Comment #4
joachim commentedYup. It'll need a reroll, sorry!
Comment #5
cs_shadow commentedRe-rolled the patch in #1.
Comment #6
joachim commentedThanks for rerolling. There's a few mistakes in the patch, however:
This is an array.
This doesn't look right.
Do we need to say NULL for an optional parameter? Isn't that implicit by it being optional?
It's an integer not an object.
Callable? Though I don't know if this actually takes a full PHP callable -- would need to check the function code.
This doesn't look right.
This is a user account object, not a string.
Same here: user account entity.
Comment #7
cs_shadow commentedFixed the errors mentioned in #6. Attaching patch and interdiff.
Comment #8
cs_shadow commentedComment #9
joachim commentedCommitted, with a minor reroll where a couple of hunks failed.
Thanks, and sorry it's taken me ages to get back to this!
Comment #11
cs_shadow commentedThanks for committing :) Better late than never.