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.
Problem/Motivation
While looking for some code snippets in Core files the following typos are found.
-
In core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php line # 59
/** * Specifies the request formats this subscriber will respond to. * * @return array * An indexed array of the format machine names that this subscriber will * attempt ot process,such as "html" or "json". Returning an empty array
ot should be to
-
In core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/StackedKernelPassTest.php line # 101
/** * Creates a middleware definition. * * @param bool $tag * Whether ot not to set the http_middleware tag.
ot should be or
Proposed resolution
Fix the typo in a simple patch.
Comment | File | Size | Author |
---|---|---|---|
#6 | interdiff.txt | 243 bytes | snehi |
#4 | 2589839-4.patch | 1.39 KB | snehi |
#2 | 2589839-2.patch | 1.39 KB | joshi.rohit100 |
Comments
Comment #2
joshi.rohit100Comment #3
aneek CreditAttribution: aneek as a volunteer commented@joshi.rohit100, great! One comment though,
Can you please add a white space between the comma? That will be very helpful.
Comment #4
snehi CreditAttribution: snehi as a volunteer and at Publicis Sapient for Publicis Sapient commented@aneek Done as mentioned by you.
@Aneek if something is pending to be done. Please change the status to Needs Work this is for future.
Comment #5
aneek CreditAttribution: aneek as a volunteer commented@snehi, thanks for this fix.
BTW,
Can we have a interdiff? Not mandatory though!
Thanks.
Comment #6
snehi CreditAttribution: snehi as a volunteer and at Publicis Sapient for Publicis Sapient commentedPFA interdiff.
Comment #7
dawehnerSeems fine for me
Comment #8
alexpottCommitted 04fc960 and pushed to 8.0.x. Thanks!