Hi On 4/27/25 22:30, ignace nyamagana butera wrote:
$url = Uri\WhatWg\Url::parse("/foo", ".com"); // Throws Uri\WhatWg\InvalidUrlException because of $baseUriSince parse is used shouldn't it return null instead of throwing ?
In this case the `$baseUri` is invalid. Since this is not expected to be an untrusted value, it makes sense to me to throw an `InvalidUrlException` here. The `null` return should only be used for an invalid `$uri`.
Best regards Tim Düsterhus