- Issue created by @jungle
- Assigned to ankitv18
- Status changed to Needs review
over 2 years ago 6:56pm 26 February 2023 - Status changed to Needs work
over 2 years ago 10:47pm 26 February 2023 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to Needs review
over 2 years ago 4:53am 27 February 2023 - Status changed to Needs work
over 2 years ago 5:04am 27 February 2023 - ๐ฎ๐ณIndia ankitv18
Hi @_pratik_ & @harivansh,
Please do assign to yourself first if you have a quick solution.I've added a new patch#9 please review.
- Status changed to Needs review
over 2 years ago 5:09am 27 February 2023 - Status changed to Needs work
over 2 years ago 5:17am 27 February 2023 - Assigned to harivansh
- Assigned to ankitv18
- ๐ฎ๐ณIndia ankitv18
Hi,
Added a patch#12 wait if test failed then assign to yourself. - Issue was unassigned.
- Status changed to Needs review
over 2 years ago 6:44am 27 February 2023 - Status changed to Needs work
over 2 years ago 7:27am 27 February 2023 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- ๐ญ๐บHungary Gรกbor Hojtsy Hungary
Updating title, tags and version number based on recent announcement at https://www.drupal.org/about/core/blog/new-drupal-core-branching-scheme-... โ
- Status changed to Needs review
over 2 years ago 11:39am 10 May 2023 - last update
over 2 years ago Custom Commands Failed - Status changed to Needs work
over 2 years ago 8:15am 11 May 2023 - ๐ฎ๐ณIndia samit.310@gmail.com
samit.310@gmail.com โ made their first commit to this issueโs fork.
- Merge request !81943344389: using DI for entity.repository service โ (Open) created by samit.310@gmail.com
- Status changed to Needs review
about 1 year ago 6:22am 27 May 2024 - Status changed to Needs work
about 1 year ago 3:24pm 27 May 2024 - ๐บ๐ธUnited States smustgrave
Believe we can use constructor property promotion here.
- First commit to issue fork.
- ๐ฌ๐ทGreece dimitriskr
dimitriskr โ changed the visibility of the branch 11.x to hidden.
- ๐บ๐ธUnited States smustgrave
Left some comments and questions on the MR.
- Status changed to Needs review
7 months ago 4:51pm 2 February 2025 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to Needs work
4 months ago 11:37pm 18 April 2025 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to Needs review
about 1 month ago 5:18pm 13 July 2025 - First commit to issue fork.
- ๐ฎ๐ณIndia mrinalini9 New Delhi
Have updated deprecations to 11.3 based on #34, please review it.
Thanks!
- ๐บ๐ธUnited States dcam
Given the number of changes to constructors that are going on, I'm going to suggest that we implement the proposal in ๐ฑ [policy, no patch] Allow docblock to be removed when modifying constructor params Active and delete their docblocks. This is especially true for
TaxonomyIndexTid
. Even if someone feels we shouldn't delete docblocks until the policy is official, we definitely shouldn't be adding one to the newEntityReferenceFormatterBase::__construct()
. - ๐ฌ๐ทGreece dimitriskr
@dcam I agree on the policy suggestion, but phpcs complains on the pipeline, that's why I had to add them. We need to change our coding standards too.
I suggest moving it back to NR unless this policy is going to be enforced really soon. - ๐บ๐ธUnited States dcam
@dimitriskr I checked all of the pipelines for this issue to see what you're describing. I only found this one that had a PHPCS failure related to the docblocks: https://git.drupalcode.org/issue/drupal-3344389/-/jobs/3308151. This particular job failed because there was an existing docblock that was missing a parameter.
My suggestion is to delete the constructor docblocks entirely instead of adding the new parameters. The rule to allow constructors without docblocks is part of the Drupal PHPCS configuration. I've created a bunch of constructors without docblocks in my own work. But for the sake of due diligence I tried deleting some of the docblocks in your MR and running PHPCS on the results locally. There were no errors. So you might give it a try.
For what it's worth @catch OK'ed deleting the docblocks even though the policy on issue scope isn't official. Apparently it's been done in a number of issues lately.
- ๐ฌ๐ทGreece dimitriskr
That's true, checked locally too.
So if the docs exist and it's wrong, phpcs complains. If it doesn't exist, all is well! I can clean this upAlso, we're not even discussing adding @inheritDoc, right? It's about completely removing the docblocks
- ๐บ๐ธUnited States dcam
Also, we're not even discussing adding @inheritDoc, right? It's about completely removing the docblocks
Yes, that's correct!
- ๐ฌ๐ทGreece dimitriskr
- ๐บ๐ธUnited States dcam
I found a couple of classes where it seemed like the new parameters need to be nullable. If I'm wrong, then let me know.
The lack of code style change consistency bothered me. I left suggestions for a few things. Aside from those, I notice one class had its constructor parameters broken up onto multiple lines. Personally, I'm OK with that. Giant in-line constructor definitions are a pain to read, edit, and review. But the MR only does it for one of them. I'd do it for all or none. Finally, one class had its parameters changed to use property promotion. I think this is OK, but not 100% sure because that could be out-of-scope. But again, this was only done for a single class.
- ๐ฌ๐ทGreece dimitriskr
Class parameters to property promotion (split into multiple lines was added by me) suggested by smustgrave to be in-scope here
Is there a general plan in core of switching classes to use property promotion/multi-line? I can switch all of these here to it, but I don't want to interfere if there's something existing already.
- ๐บ๐ธUnited States dcam
Class parameters to property promotion (split into multiple lines was added by me) suggested by smustgrave to be in-scope here
@smustgrave would know better than I would.
Is there a general plan in core of switching classes to use property promotion/multi-line?
There's ๐ Use PHP 8 constructor property promotion for existing code Needs work , but I scanned the current MR to see if it's editing any of these same classes and didn't notice any. That's a little weird, but I think you're OK to proceed.