Closed (duplicate)
Project:
Drupal core
Version:
8.9.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2012 at 16:38 UTC
Updated:
12 Apr 2021 at 04:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mile23Comment #2
mile23Patch-o-la.
Comment #3
mile23Still applies.
Comment #4
mile23Comment #5
mile23Bumping to 8.1.x. Patch no longer applies.
Comment #6
naveenvalechaAdmins-MacBook-Pro% phpcs --standard="Drupal" --extensions="module/php,php" --report-csv core/modules/field_ui | grep -F $'Missing param\nReturn type missing'Comment #7
mile23As per @jhodgdon on the other similar issues, I'm setting this back to 8.0.x.
The patch still applies, and the hints look correct. phpcs says everything in the module has a hint.
Comment #8
catchComment #9
jhodgdonSorry, but I think this could use some more work:
Technically, removing the . from @see in this patch is out of scope. Let's just take that out of the patch, and possibly file another issue to take care of this all over core.
Out of scope, see above.
I don't think EntityInterface is the best type hint for this $node parameter. Should be a node-specific interface?
Same here.
Comment #10
mile23Just a heads-up that the phpcs code snippet to review the patch has changed. It wasn't checking .inc files. See the gist here: https://gist.github.com/paul-m/227822ac7723b0e90647
Comment #11
mile23:-) #2662208: Fix @see documentation in core
Comment #20
shetpooja04 commentedI have uploaded patch with changes comparing from #6 in 8.9.x version
Few files already had changes so not including those in the patch
and also please mention whether to implement 3rd and 4th point from #9
used this to check
phpcs --standard="Drupal" --extensions="module/php,inc/php,php" --report-csv core/modules/field_ui | grep -F $'Missing param\nReturn type missing'Please review !
Comment #21
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.