Skip to content

UriInterface comment return type and actual return type are inconsistent. #46

@twoodhull

Description

@twoodhull

Several functions' comments in UriInterface state that the return type is null|string, but the declared return type in the signature is a non-nullable string. Are the comments wrong, or should the functions return a nullable string?

Examples:

* @return null|string The URI scheme.
*/
public function getScheme(): string;

* @return null|string The URI authority, in "[user-info@]host[:port]" format.
*/
public function getAuthority(): string;

* @return null|string The URI host.
*/
public function getHost(): string;

* @return null|string The percent-encoded query string
*/
public function getRawQuery(): string;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions