Description
The following code:
<?php
use Uri\Rfc3986\Uri;
echo (new Uri('foo/bar'))->withPath('//foo')->toString();
Resulted in this output:
But I expected this output instead:
Uri\InvalidUriException should be thrown because if there is no authority the path `//foo` cannot start with a `//`.
PHP Version
Operating System
No response