Skip to content

[stable5.7] chore(deps): Update horde-mime to 2.14.1#12766

Merged
kesselb merged 3 commits intostable5.7from
update-horde-mime-57
Apr 16, 2026
Merged

[stable5.7] chore(deps): Update horde-mime to 2.14.1#12766
kesselb merged 3 commits intostable5.7from
update-horde-mime-57

Conversation

@kesselb
Copy link
Copy Markdown
Contributor

@kesselb kesselb commented Apr 16, 2026

To unblock #12765

Psalm is flagging, that getRaw might return string|resource.

This is resolved by updating horde-mim (https://github.com/bytestream/Mime/releases/tag/v2.14.0 and https://github.com/bytestream/Mime/releases/tag/v2.14.1).

If you prfer to not update, then we can add a safe-guard as I had in an older iteration of it: 6a2e51c#diff-36c8130b1bc43570dee0d419c85f7000c236fb81c05782f8c9251600128a98e0R451.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselb kesselb requested review from ChristophWurst, DerDreschner and Copilot and removed request for ChristophWurst and GretaD April 16, 2026 16:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kesselb kesselb self-assigned this Apr 16, 2026
@kesselb kesselb changed the title chore(deps): Update horde-mime to 2.14.1 [stable5.7] chore(deps): Update horde-mime to 2.14.1 Apr 16, 2026
kesselb added 2 commits April 16, 2026 18:45
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 62 to 66
$converted = @mb_convert_encoding($data, 'UTF-8', $charset);
if ($converted === false) {
if ($converted === false && $charset !== null) {
// Might be a charset that PHP mb doesn't know how to handle, fall back to iconv
$converted = iconv($charset, 'UTF-8', $data);
}
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new guard avoids calling iconv() with a null $charset, but we don't currently have a unit test that exercises the “no charset specified + conversion fails” path (which previously could raise a TypeError). Consider adding a test case that sets no charset and uses non‑UTF8/invalid bytes such that mb_convert_encoding() returns false, asserting we get the expected ServiceException (and no TypeError).

Copilot uses AI. Check for mistakes.
@kesselb kesselb merged commit 4f10008 into stable5.7 Apr 16, 2026
45 of 46 checks passed
@kesselb kesselb deleted the update-horde-mime-57 branch April 16, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants