Fix PHPStan L1 errors "Function \Foo\Bar\baz invoked with X parameters, 0 required."

Created on 9 May 2023, over 1 year ago
Updated 27 October 2023, about 1 year ago

Problem/Motivation

Amongst the current suppressions found in the PHPStan level 1 baseline is: Function \Foo\Bar\baz invoked with X parameters, 0 required..

This issue exists to fix all of those.

Steps to reproduce

- Run PHPStan on level 1 and see the above issue amongst all others.

Proposed resolution

- Solve all of the reported issues for the above mentioned.
NOTE: There is one suppression that is deemed worthy of a separate issue ( πŸ“Œ Fix PHPStan L1 errors "Function Drupal\Core\Executable\ExecutableInterface::execute() invoked with 1 parameter, 0 required." in ActionBase Active ), so this is the only remaining suppression in this MR:

			message: "#^Method Drupal\\\\Core\\\\Executable\\\\ExecutableInterface\\:\\:execute\\(\\) invoked with 1 parameter, 0 required\\.$#"
			count: 1
			path: lib/Drupal/Core/Action/ActionBase.php

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

10.2 ✨

Component
BaseΒ  β†’

Last updated about 3 hours ago

Created by

πŸ‡³πŸ‡±Netherlands spokje

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024