Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Would be helpful for unit tests
Comment | File | Size | Author |
---|---|---|---|
#9 | 2151427-comment-const-9.patch | 38.35 KB | andypost |
#9 | interdiff.txt | 756 bytes | andypost |
#2 | 2151427-comment-const-2.patch | 37.57 KB | TR |
Comments
Comment #1
andyposthere we go!
Comment #2
TR CreditAttribution: TR commentedThis is a common-sense improvement. +1 for doing this.
However, some of the added "use Drupal\comment\CommentInterface;" statements are not needed. For example, in /core/modules/comment/lib/Drupal/comment/CommentStorageController.php, CommentInterface is already referenced directly in the code without error. The CommentInterface interface doesn't have to be "use"-d because it is in the same namespace as CommentStorageController.
The attached patch differs from #1 in that it removes the unneeded use statements. Nothing else has been changed.
Comment #3
royal121 CreditAttribution: royal121 commentedThe patch in #2 applies cleanly. Thanks.
Comment #4
larowlanmakes sense but is an api change.
there is at least one change-notice that will need updating too.
Comment #5
andypostAssigning to Alex about changes, if the change rejected the backup is mark deprecated
PS: there's no conclusion still according #1847540-7: [META] Clean up comment module tests and decouple from node
This constants could be marked deprecated to avoid API change tag
Comment #6
Dries CreditAttribution: Dries commentedThis makes sense to me.
Comment #7
andypostre-roll after #2061899: Remove references to global $user in Comment module
Comment #9
andypostAnd another new entry after #1966448: comment_entity_load() breaks after disabling the Forum module
No other changes so back to RTBC
Comment #10
alexpottCommitted be70033 and pushed to 8.x. Thanks!
Comment #11
andypostFiled change notice https://drupal.org/node/2156155
Comment #12
webchickLooks fine to me, thanks!