Control: tag -1 + patch

Dear maintainers,

please find attached the fixes that I have backported from slim/psr7.

Best regards,

Thomas Uhle



On Fri, 20 Feb 2026, Thomas Uhle wrote:

Package: php-slim
Version: 3.12.5-1
Severity: important
Control: affects -1 + src:php-di-slim-bridge

Dear maintainers,

while building php-di-slim-bridge from source, PHPUnit reports the following when called with the option '--display-deprecation':

10 tests triggered 1 PHP deprecation:

1) /usr/share/php/Slim/Http/Uri.php:719
preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated

The reason is basically that parse_url() returns null instead of an empty string in Uri::createFromEnvironment() if the requested part of the URL does not exist. This issue has already been fixed for Slim 4 in slim/psr7.

I am going to provide a patch once I have received a ticket number.

Best regards,

Thomas Uhle

Attachment: slim-http-uri.diff.gz
Description: application/gzip

Reply via email to