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
When running test, ParagraphsTypeHasEnabledBehaviorPluginTest. ::setUp should have a void return typehint.
Steps to reproduce
Proposed resolution
Adding a void typehint to ::setUp.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#7 | 3228098-void-4.patch | 2.27 KB | taniachque |
| |||
#7 | interdiff-3228098-1-4.txt | 1.9 KB | taniachque |
#6 | 3228098-6.patch | 25.73 KB | hmendes |
| |||
#5 | 3228098_interdiff.txt | 18.89 KB | hmendes |
#5 | 3228098_5.patch | 21.15 KB | hmendes |
Comments
Comment #2
taniachque CreditAttribution: taniachque at MD Systems GmbH commentedComment #3
BerdirLooking are core, the coding standard is to add a space between : and void.
Comment #4
mrinalini9 CreditAttribution: mrinalini9 at Srijan | A Material+ Company for Drupal India Association commentedUpdated patch #2 by adding space between : and void, please review it.
Comment #5
hmendes CreditAttribution: hmendes at CI&T commentedShouldn't we fix all occurrences of setIp in the tests?
Adding a new patch.
Comment #6
hmendes CreditAttribution: hmendes at CI&T commentedForgot to fix the submodules tests.
Comment #7
taniachque CreditAttribution: taniachque at MD Systems GmbH commentedThank you so much for the patches, I will fix the remaining notices.
I have this old patch that I wanted to upload.
Comment #8
mathilde_dumond CreditAttribution: mathilde_dumond at MD Systems GmbH commentedComment #9
BerdirThanks, committed. This will likely break tests in modules that extend from paragraphs (base) test classes, paragraphs_collection for example will likely be affected.