The doc comment user?: string|null, password?: string|null, } at position 0 could not be parsed: Unknown type name 'user?' at position 0 in user?: string|null, password?: string|null, }.
Loading history...
28
*/
29
public function __construct(string $scheme, string $path, array $parameters = [], array $authentication = [])
The expression return parent::getScheme() could return the type null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
39
}
40
41
/**
42
* @return static
43
*/
44
public function withScheme(?string $scheme)
45
{
46
if (null === $scheme || '' === $scheme) {
47
throw new InvalidArgumentException('A Path must have a schema');