Skip to content

Conversation

@jcdelepine
Copy link
Contributor

Fixes PHP 8+ deprecation warning when encoding URLs with null mailbox.

Error: rawurlencode(): Passing null to parameter #1 ($string) of type string is deprecated

The mailbox property is initialized to null and can remain null for certain URL types. Use null coalescing operator to pass empty string instead of null to rawurlencode().

Fixes PHP 8+ deprecation warning when encoding URLs with null mailbox.

Error: `rawurlencode(): Passing null to parameter horde#1 ($string) of type string is deprecated`

The `mailbox` property is initialized to `null` and can remain null for certain URL types. Use null coalescing operator to pass empty string instead of null to `rawurlencode()`.
@what-the-diff
Copy link

what-the-diff bot commented Feb 8, 2026

PR Summary

  • Improved URL Encoding for Mailbox
    The method for incorporating the mailbox in the URL has been altered. Now, if the mailbox isn't defined, the system will default to using an empty string. This ensures there's always a value to prevent disruptions in URL encoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant