Closed (outdated)
Project:
Drupal core
Version:
8.2.x-dev
Component:
user system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Apr 2012 at 21:40 UTC
Updated:
19 Jan 2017 at 17:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aspilicious commentedExperimental patch... Wonna see what happens with the bot :)
Comment #3
aspilicious commentedReroll, will probably fail again. Have no idea why...
Comment #5
aspilicious commentedOk after installing I found the nastyness...
global $user is still a std object so most functions get both instances of User and std object. Resulting into failures...
Comment #6
aspilicious commentedOk this one should install...
Comment #8
tim.plunkettTagging.
Comment #9
cosmicdreams commented#6: 1537434-user-entity-type-hinting-6.patch queued for re-testing.
Comment #11
cosmicdreams commentedneeds reroll
Comment #12
albert volkman commentedReroll.
Comment #14
albert volkman commentedForgot 'use' statement in user.module.
Comment #16
albert volkman commentedPostponing.
Comment #17
cosmicdreams commentedRerolled, provided type hinting in user.module. Checking to see how much this breaks.
Comment #19
cosmicdreams commentedAfter reviewing the patch I found many more places where type hinting could be used.
Comment #21
aspilicious commentedThis was postponed because session handling isn't a true entity. This will fail all the time. Leave it postponed untill we figured out the session handling.
Comment #23
tim.plunkettComment #24
socketwench commentedRerolled. I hope.
I wonder if I can beg someone to show me how to do this in PHPstorm. Doing manually is just too error prone.
Comment #25
socketwench commentedMight need to redo the patch because of https://drupal.org/node/2053489
Comment #27
garphyRerolled
Comment #28
garphychanging status to trigger the bot
Comment #30
cosmicdreams commentedIn general, why are we using User and not UserInterface to type these parameters?
So, I think we need to document the parameters in the function's docblock.
Comment #31
cosmicdreams commentedHere's a patch that explains what I'm saying.
Comment #33
berdirYes, UserInterface should be used, for example here too :)
Lots of those below, always UserInterface, in @params and hook_*() documentations always fully qualified with a leading \, in actual implementations only UserInterface + a use.
I have absolutely no clue where all this is coming from (not just this, all the added functions around this), but it shouldn't be here :)
Comment #34
cosmicdreams commentedProbably just how I created the patch. Clearly, there's more work to be done.
Comment #37
dpiSafe to say this is outdated.