From f701f2896571176b77700154f51e3dffe17c22e8 Mon Sep 17 00:00:00 2001 From: prolic Date: Wed, 23 May 2012 22:04:39 +0200 Subject: [PATCH] Zend\Uri replaced "get_class()" with "get_called_class()" because it's faster --- src/Uri.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Uri.php b/src/Uri.php index b873da2af..809e64a7d 100755 --- a/src/Uri.php +++ b/src/Uri.php @@ -417,7 +417,7 @@ public function resolve($baseUri) if (!$baseUri instanceof static) { throw new Exception\InvalidUriTypeException(sprintf( 'Provided base URL is not an instance of "%s"', - get_class($this) + get_called_class() )); } @@ -645,7 +645,7 @@ public function setScheme($scheme) throw new Exception\InvalidUriPartException(sprintf( 'Scheme "%s" is not valid or is not accepted by %s', $scheme, - get_class($this) + get_called_class() ), Exception\InvalidUriPartException::INVALID_SCHEME); } @@ -692,7 +692,7 @@ public function setHost($host) throw new Exception\InvalidUriPartException(sprintf( 'Host "%s" is not valid or is not accepted by %s', $host, - get_class($this) + get_called_class() ), Exception\InvalidUriPartException::INVALID_HOSTNAME); }