Remove error suppression

Created on 18 October 2024, 6 months ago

I have always hated the legacy error suppression in src/Utility/MimeMailFormatHelper.php, where we use @ to hide errors that occur when exploding a URL into two parts and assigning those parts to a variables using list(). When the explode doesn't produce two parts, a PHP error occurs, which needs to be suppressed.

Using @ in this way also leads to the one Phpstan error in our tests.

So this issue is to find an alternative way to code this without the use of @.

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024