Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
typed data system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Nov 2019 at 06:00 UTC
Updated:
17 May 2020 at 22:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dpiComment #3
panshulk commentedComment #4
panshulk commentedComment #5
surabhi-gokte commentedComment #6
surabhi-gokte commentedReviewed the patch by applying on my local. All looks good, moving the issue to RTBC.
Comment #7
surabhi-gokte commentedadded attribution
Comment #8
jungleIt‘s possible to be NULL from the comment. Let's change it to
string|int|nullComment #9
kishor_kolekar commentedaddress comment #8 please review the patch.
Comment #10
kishor_kolekar commentedComment #11
jungleThanks @kishor_kolekar! Let's enlarge the scope a bit to inline with the patch in #9. If the testing passes, this is RTBC.
Comment #12
johnwebdev commentedthe => The
Comment #13
suresh prabhu parkala commentedPlease review. updated as per #12.
Comment #14
jungle#12 nice catch, thank you!
Re #13 unexpected change made.
Comment #15
suresh prabhu parkala commentedSorry for that. This is a new patch. Please review!
Comment #16
kishor_kolekar commentedpatch #15 LGTM, If the testing passes, this is RTBC.
Comment #17
jungleBTW, It's fine having no interdiff here as the patch is very small, however, it's a good habit to attach interdiff where applicable. In general, it makes review easier more or less. Especially, for larger patches. See "Creating an interdiff" https://www.drupal.org/documentation/git/interdiff
Comment #18
jungleAs the declaration of
TypedDataInterface::createInstance()changed,\Drupal\Core\TypedData\TypedData::createInstance()should change accordingly (file:core/lib/Drupal/Core/TypedData/TypedData.php)Comment #19
kishor_kolekar commentedaddress comment #18 please review the patch.
Comment #20
jungleTestings against 4 branches passed.
Rethinking about the scope here, the patch did 3 things
Fix type hitting
Fix missing desctiptions of @return
Fix wrong type of @return
Actually, each one could have a larger scope and be fixed in a separate issue. RTBC this to see what committer(s) would say.
Comment #21
jungleComment #22
jungleOh, no, 2 coding standard violations, but one change is enough -- remove the space right after the opening parenthesis
Comment #23
suresh prabhu parkala commentedupdated patch. Please review!
Comment #24
jungleSetting to RTBC again
Comment #25
xjmThanks for your work on this!
We should change this patch to be limited to the documentation improvements only. Adding typehints is disruptive and can be a BC break. Let's look at the missing typehints in a separate issue, which will probably be part of a meta about how to add missing typehints.
(Saving issue credit.)
Comment #26
xjmComment #27
xjmWith the modified scope of "docs only", this is eligible for backport to the bugfix branch. (The stuff with the typehints is 9.1 material, so the followup should be against 9.1 and probably part of a larger project to identify and handle missing signature typehints.
Thanks!
Comment #28
jungle@xjm, Thank you! Now the patch is simpler and docs only.
Comment #29
jungleLooks like a follow-up is unnecessary, there are type hinting relevant issues including meta too.
Comment #30
jungleSetting back to RTBC, please do not take this as a self-RTBC :)
Comment #31
xjm@jungle, you do still need someone else to review your changes since #28. :) I could +1 the RTBC but then I can't commit it. :D So if someone's available to give it quick review then we can get this in. :)
Comment #32
johnwebdev commentedInterdiff looks good!
RTBC.
Comment #33
xjmThanks!
Saving credits.
Comment #38
xjmCommitted to 9.1.x, 9.0.x, 8.9.x, and 8.8.x. Thanks!