Closed (fixed)
Project:
Drupal core
Version:
11.3.x-dev
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2025 at 23:29 UTC
Updated:
24 Dec 2025 at 16:44 UTC
Jump to comment: Most recent
The sniff, Drupal.Array.Array.LongLineDeclaration is not enabled.
Enable Drupal.Array.Array.LongLineDeclaration in the Tests/Core directory.
There are no strict standards for how to split a call to a function across multiple lines. The changes try to be the best fit for readability and the current style used in the file or method.
Review
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
quietone commentedTime for some reviews
Comment #4
quietone commentedComment #5
quietone commentedComment #6
quietone commentedComment #7
smustgrave commentedLarge MR but seems pretty straight forward and change to phpcs.xml should catch any missed.
Comment #8
astonvictor commented[ignore]
Comment #9
quietone commentedRebased with a single conflict, in
and
core/tests/Drupal/Tests/Core/Menu/MenuActiveTrailTest.php. I removed the change from this MR and reformatted the new code from HEAD. Since I used the reformat command from PHPStorm, which I use all the time with no problems, I am restoring leaving at RTBC.Comment #10
quietone commentedOh dear I wasn't working on HEAD and had a work in progress commit there as well. This reverts that mistake.
Comment #11
quietone commentedChasing HEAD, 2 more files added.
Comment #12
dcam commentedI checked the diffs of all of the changes. There wasn't anything missing or weird. It looks good to me.
Comment #13
quietone commentedThis needed a rebase that didn't go well. Changes that I reverted kept coming back in. So, I started over using the diff file. Then I made some tweaks in TitleResolvedTest. Those are in the last commit which should be checked.
Comment #14
dcam commentedSetting to Needs Work due to a small consistency issue that I noticed in the latest commit. Feedback is in the MR comments.
Comment #15
quietone commented@dcam, Thanks
Comment #16
dcam commentedFeels weird to be thanked for something that seemed kind of nit-picky. But anyway, the latest changes look OK to me now. Back to RTBC.
Comment #17
quietone commentedRebase and needed changes because FormSubmitter has added an argument. So NR for those changes.
Comment #18
dcam commentedThe latest commit looks good. It's a straightforward change. And tests are passing, so the linting agrees. Back to RTBC.
Comment #19
quietone commentedAnother rebase. There were a few conflicts but easy as it from the issue that added lots of return types. And a blank line crept in somewhere.
I think it is safe to keep this at RTBC.
Comment #20
longwaveApologies for my pedantry but I find balanced brackets much easier to read, fixed up all the cases I spotted in suggestions.
Comment #21
quietone commentedNo worries on my end. I am glad that someone is taking a close look.
I have applied the suggestions and linting has passed, so restoring RTBC.
Comment #22
quietone commentedThis also needed a rebase. Working on that now.
Comment #23
quietone commentedRebased and linting has passed.
Comment #24
longwaveCommitted and pushed 41ad9252958 to 11.x and fc0b1524058 to 11.3.x. Thanks!