Fix PHPStan arguments.count error

Created on 23 April 2025, 21 days ago

Problem/Motivation

There are currently 3 arguments.count errors in PHPStan baseline.

Proposed resolution

Fix them.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component

base system

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly mondrake ๐Ÿ‡ฎ๐Ÿ‡น

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @mondrake
  • Merge request !11925Closes #3520730 โ†’ (Open) created by mondrake
  • Pipeline finished with Failed
    21 days ago
    Total: 83s
    #480257
  • Pipeline finished with Failed
    21 days ago
    Total: 130s
    #480266
  • Pipeline finished with Failed
    21 days ago
    Total: 247s
    #480280
  • Pipeline finished with Failed
    21 days ago
    Total: 213s
    #480285
  • Pipeline finished with Failed
    21 days ago
    #480306
  • Pipeline finished with Failed
    21 days ago
    Total: 101s
    #480339
  • Pipeline finished with Failed
    21 days ago
    Total: 125s
    #480369
  • Pipeline finished with Failed
    21 days ago
    Total: 226s
    #480415
  • Pipeline finished with Failed
    20 days ago
    Total: 223s
    #481019
  • Pipeline finished with Failed
    20 days ago
    Total: 202s
    #481039
  • Pipeline finished with Canceled
    20 days ago
    Total: 33s
    #481060
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly mondrake ๐Ÿ‡ฎ๐Ÿ‡น

    Huh, harder than I thought. This is adding future additional interface parameters, since it seems that they are just missing currently.

  • Pipeline finished with Failed
    20 days ago
    Total: 434s
    #481061
  • Pipeline finished with Success
    20 days ago
    Total: 423s
    #481103
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Aren't these considered API changes for some?

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    I know we were looking to close that meta but guess itโ€™s been used another round.

    Going to comment there I suggest closing the meta in 12

    Chances here seem fine then

    Though without a dedicated CR may be a surprise to some when the parameter just appears

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly mondrake ๐Ÿ‡ฎ๐Ÿ‡น

    Agree we should close that meta issue, made changes there accordingly.

    wrt to the CR, I am unsure. tbh I find the as-is a bit weird, many implementations of the interface methods rely on those params that are not in the interface signature - to the point that I was confused, started trying to remove them in the implementations just to realize afterwards I should do the other way around i.e. adding them to the interfaces. So for me we are just getting things right as they should be here, not changing conceptually the API. My 0.02โ‚ฌ.

  • 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.

  • Pipeline finished with Success
    4 days ago
    Total: 708s
    #493874
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly mondrake ๐Ÿ‡ฎ๐Ÿ‡น

    rebased

Production build 0.71.5 2024