[BUGFIX] Fix Type Hinting

$uri must be a URI object or a valid string representation of a URI.