diff --git a/src/Uri.php b/src/Uri.php index 8bf6cbb8a..6e12c3f9c 100644 --- a/src/Uri.php +++ b/src/Uri.php @@ -677,7 +677,7 @@ public function setScheme($scheme) throw new Exception\InvalidUriPartException(sprintf( 'Scheme "%s" is not valid or is not accepted by %s', $scheme, - get_called_class() + get_class($this) ), Exception\InvalidUriPartException::INVALID_SCHEME); } @@ -726,7 +726,7 @@ public function setHost($host) throw new Exception\InvalidUriPartException(sprintf( 'Host "%s" is not valid or is not accepted by %s', $host, - get_called_class() + get_class($this) ), Exception\InvalidUriPartException::INVALID_HOSTNAME); }