Fix PHPStan L2 error in traits

Created on 2 December 2022, about 2 years ago
Updated 16 April 2023, almost 2 years ago

Problem/Motivation

We are trying to reduce the L2 phpstan baseline before starting to go up to L2.
One thing to quickly reduce the number is tackle errors occurring in traits.

This is becuase phpstan reports errors for each class using the trait, causing lots of duplicates.
With some small and focussed non-intrusive changes, this would lower the baseline already a lot making it easier for further optimalisations of the baseline.

Proposed resolution

I propose to focus on small and simple fixes first which occur a lot in the baseline. Anything which needs a slightly more complex change i would descope.

πŸ“Œ Task
Status

Needs work

Version

10.1 ✨

Component
OtherΒ  β†’

Last updated about 14 hours ago

Created by

πŸ‡§πŸ‡ͺBelgium mallezie Loenhout

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