in the file: core/lib/Drupal/Core/File/file.api.php . Wrongly documented the @param and @return .
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 2610064-6.patch | 734 bytes | rakesh.gectcr |
| #4 | 2610064-4.patch | 725 bytes | rakesh.gectcr |
| #2 | 2610064-1.patch | 730 bytes | rakesh.gectcr |
Comments
Comment #2
rakesh.gectcrComment #3
jhodgdonThanks for the patch! Sorry for the delay in reviewing -- I've been on vacation and no one else, unfortunately, ever reviews docs patches. :(
The docs say it can also return -1 and other values, so @return array is not correct here.
Comment #4
rakesh.gectcrComment #5
jhodgdonThanks!
It's preferable to list the possible return types, rather than just saying "mixed". For instance, it might be array|int|bool
or something like that. You'll need to figure out what the return values can be.
Comment #6
rakesh.gectcr@jhodgdon,
I have done the changes according to your previous comment.
Comment #7
jhodgdonThanks, but....
This is not the correct list of return values, according to the documentation block below, which says the values should be either -1, an array of HTTP headers, or NULL.
So this should be
int|string[]|null
right? I don't think it should return a Boolean value.
Comment #16
quietone commentedThis work is now being done by sniff. The work here is now in #3207949: Fix Drupal.Commenting.FunctionComment.MissingParamType so closing this as a duplicate. I've identified credit to add over there, let me know if I got it wrong.