Skip to content

Conversation

@yoeunes
Copy link
Contributor

@yoeunes yoeunes commented Nov 25, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

When using %env(query_string:MY_URL)% with a URL that has no query string (e.g. https://example.com), the processor currently falls back to parse_str('https://example.com', $result).

This PR ensures that [] is returned when the input is a valid URL but lacks a query component.

@nicolas-grekas nicolas-grekas force-pushed the fix-di-query-string-urls branch from 160614c to 69ad606 Compare November 27, 2025 14:31
@nicolas-grekas
Copy link
Member

Thank you @yoeunes.

@nicolas-grekas nicolas-grekas merged commit dd745cc into symfony:6.4 Nov 27, 2025
4 of 11 checks passed
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.

4 participants