Skip to content

fix: Fix deprecation warning on PHP >= 8.5#33

Open
DerDreschner wants to merge 1 commit intoglenscott:masterfrom
DerDreschner:fix/php85-deprecation-warnings
Open

fix: Fix deprecation warning on PHP >= 8.5#33
DerDreschner wants to merge 1 commit intoglenscott:masterfrom
DerDreschner:fix/php85-deprecation-warnings

Conversation

@DerDreschner
Copy link

When running the unit tests for the Nextcloud mail app on PHP 8.5, the following deprecation warning is being thrown:

PHP Deprecated: Automatic conversion of false to array is deprecated in /var/www/html/apps-extra/mail/vendor/glenscott/url-normalizer/src/URL/Normalizer.php on line 376

That's because $result is initially set as type bool, but later converted to type array when some decoding happens. This is being fixed by this PR.

Relates to nextcloud/mail#12384.

Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
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