Fix PHPStan L1 errors "Variable $foo might not be defined." caused by non-exhaustive switch statements

Created on 13 April 2023, almost 2 years ago
Updated 10 April 2024, 12 months ago

Problem/Motivation

Amongst the current suppressions found in the PHPStan level 1 baseline is: Variable $foo might not be defined..

This issue exists to fix all of those caused by non-exhaustive switch statements. See https://github.com/phpstan/phpstan/issues/7521#issuecomment-1164581820

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.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Fixed

Version

10.3 โœจ

Component
Baseย  โ†’

Last updated about 4 hours ago

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands spokje

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

Merge Requests

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