Re: [RFC] [Discussion] Add WHATWG compliant URL parsing API
On 17/03/2025 20:58, Máté Kocsis wrote:
Hi Ignace,
1) around Uri\UninitializedUriException
If I look at the
behaviour of
DatetimeImmutable
in the same scenario or a Userland object
instead of
throwing an exception an error is thrown
see:
- https://3v4l.org/d4VrY
- https://3v4l.org/Wn7En
Shouldn't the URI feature follow the same path for consistency ?
Instead
of throwing an exception it should throw an Error on uninitialized
issue
at least.
Yes, you are right! Uri\UninitializedUriException should extend an Error indeed,
since people shouldn't try to catch it either.
2) around Normalization. In case of query normalization, sorting the
query string is not mention does it means that with the current
feature
http://example.com?foo=bar&foo=rab`
<