Skip to content

If scheme is not provided an empty string is returned, all other parts return null. #53

@mustanggb

Description

@mustanggb

This bug is caused because mb_strtolower() will always return a string.

Here is a possible fix:

Url.php

- $this->scheme   = mb_strtolower($scheme, 'UTF-8');
+ $this->scheme   = $scheme ? mb_strtolower($scheme, 'UTF-8') : NULL;

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions