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
... and the upstream already has a fixed for since a couple of years: https://github.com/doctrine/annotations/issues/141.
Steps to reproduce
(see minimal test in the MR)
Proposed resolution
Apply fix from upstream.
Remaining tasks
User interface changes
API changes
None
Data model changes
Release notes snippet
Issue fork drupal-3440170
Show commands
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:
- 3440170-forked-docparser-incorrectly changes, plain diff MR !7446
Comments
Comment #2
mxr576Comment #4
larowlanEven though this is on the way out, we will need to support it through the 11.x lifecycle, so there's no harm in improving it in my opinion
Comment #5
smustgrave CreditAttribution: smustgrave at Mobomo commentedRan test-only feature
So coverage for change is there.
Left a comment a comment though, that just may not be me understanding
Comment #6
smustgrave CreditAttribution: smustgrave at Mobomo commentedI see other examples of the space in the file. Don't fully understand but does seem to address the issue.
Comment #7
longwavePHPCS is disabled here because this is a copy of Doctrine code with different standards, but we should still conform to Doctrine formatting by using 4-space indents.
Comment #9
quietone CreditAttribution: quietone at PreviousNext commentedI updated the MR to use 4 space indenting on all the changes.
In the future, I would like to have a situation where we don't spend time on formatting issues on forked code that is on the way out.
Comment #10
smustgrave CreditAttribution: smustgrave at Mobomo commentedRebased for the failing kernel failures. Believe the javascript to be unrelated.
Comment #11
alexpottDon't particularly like the code... str_starts_with() exists in our minimum PHP but it's a copy of upstream so whatevs... let's march forward to the time we don't have to maintain this.
Committed and pushed f1f27ff7f3 to 11.x and 3adb7e2297 to 10.3.x. Thanks!
Committed 5d783fb and pushed to 10.2.x. Thanks!
Comment #15
smustgrave CreditAttribution: smustgrave at Mobomo commentedOut of my own curiosity does ! having a space mean anything?
Comment #16
longwaveNo -
! $something
and!$something
mean the same thing, it's just stylistic preference.Comment #18
mxr576Thanks for such a fast resolution of the problem! \o/
+1