Problem/Motivation

During the D10 lifecycle, some method in interfaces were preliminarily added or typehinted by adding inline comments in place of the to-be real parameters. This allows Symfony's debug classloader to report deprecations for methods that do not implement the stealth parameters, i.e. the concrete classes will throw implementation errors even if the interfaces are not yet formally enforcing the signatures.

The following interfaces need to be adjusted prior to 11.0.0:

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

mondrake created an issue. See original summary.

gábor hojtsy’s picture

Title: [D11] Adjust parameters in interfaces » [11.x] Adjust parameters in interfaces
Version: 11.0.x-dev » 11.x-dev
Issue tags: +Major version only

Updating title, tags and version number based on recent announcement at https://www.drupal.org/about/core/blog/new-drupal-core-branching-scheme-...

quietone’s picture

Title: [11.x] Adjust parameters in interfaces » Adjust parameters in interfaces
Parent issue: » #3402452: [meta] Requirements for tagging 11.0.0-alpha1

Add parent for D11.

mondrake’s picture

Issue summary: View changes
mondrake’s picture

Status: Active » Needs review

This meta can be probably closed now?

smustgrave’s picture

Title: Adjust parameters in interfaces » [META] Adjust parameters in interfaces
Status: Needs review » Reviewed & tested by the community

Does seems like all issues mentioned have been closed. Not sure I can close a META

longwave’s picture

Status: Reviewed & tested by the community » Needs review

What about AccountInterface::hasPermission()?

#3415189: Tighten typehint in UserSession::hasPermission() and User::hasPermission()

I found this by searching for function.*\*, this is the only remaining instance.

andypost’s picture

smustgrave’s picture

Can I make the recommendation this meta be used for 12 release and then closed?

mondrake’s picture

Title: [META] Adjust parameters in interfaces » D12 - Adjust parameters in interfaces
Issue summary: View changes
Parent issue: #3284879: [meta] Requirements for tagging Drupal 11.0.0-beta1 »

I agree with #11, made IS changes so this is no longer a meta and once completed, we can close it.

quietone’s picture

Title: D12 - Adjust parameters in interfaces » [Meta] Adjust parameters in interfaces
Status: Active » Postponed

I was just commenting that I disagree with #11. That is, that an issue for D11 work should stay with a D11 parent and so forth. It does help when creating all the issues needed for a new major version.

And while this was being created I created a new issue for Drupal 12. #3522129: [META] Adjust parameters in interfaces. So, there is some issue management to do which I can do in a bit.

quietone’s picture

quietone’s picture

Status: Postponed » Reviewed & tested by the community

Fixes were made in child issues and I haven't found any more. So, I think this is fixed.

smustgrave’s picture

There are none merged tickets attached still. Should those all be kicked back?

xjm’s picture

Status: Reviewed & tested by the community » Needs review

RTBC doesn't really make sense as a status here; there's nothing for a committer uninvolved with the issue to do.

@smustgrave, is your question about related issues? Related issues can be open when a meta is closed; that's fine. It's only when it's child issues that we need to reparent them to somewhere else.

So I'd suggest marking this directly to fixed if that addresses your question. Thanks!

smustgrave’s picture

Status: Needs review » Fixed

Going on a limb but this seems like the correct status now..

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.