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
File sites/default/default.settings.php
has extra whitespace in the beginning of $databases
declaration.
Proposed resolution
Remove the extra whitespace.
Comment | File | Size | Author |
---|---|---|---|
#2 | remove_extra_whitespace-2863941-2.patch | 329 bytes | el7cosmos |
Comments
Comment #2
el7cosmosComment #3
el7cosmosComment #4
markdorisonLooks like a good change to me. Patch applies cleanly.
Comment #5
lauriiiThe reason why our coding standard tests haven't caught this is that at the moment, default.settings.php is not being tested against phpcs rules. However, while reviewing this I tried to run the phpcs tests manually but this wasn't still caught by our current rules. I filed a bug report for that #2868081: Line indentation not tested for the first non-comment line.
I also noticed that default.settings.php has still inconsistent usage of the different array syntaxes. I also opened an issue for that: #2868078: Use new array syntax in PHP files outside of /core..
Committed daced6f and pushed to 8.4.x. Thanks!