Fix PHPStan L2 errors "Parameter $foo of method Foo::bar() has invalid type Foo\Baz." and "Method Foo::bar() has invalid return type Foo\Baz. "

Created on 20 November 2022, about 2 years ago
Updated 12 March 2023, almost 2 years ago

Problem/Motivation

Amongst of the "new" issues found when running PHPStan on level 2 are: Parameter $foo of method Foo::bar() has invalid type Foo\Baz. and Method Foo::bar() has invalid return type Foo\Baz..

This child-issue exists to fix all of those.

Steps to reproduce

- Run PHPStan on level 2 and see the above 2 issues amongst all others.

Proposed resolution

- Solve all of the reported issues for both of the above mentioned.
- Run PHPStan on level 2 and don't see the above 2 issues any more.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.1

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