Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#4246 from prolic/get_c…
Browse files Browse the repository at this point in the history
…lass_fix

replaced get_called_class() with get_class($this) in non-static context
  • Loading branch information
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 42b458f

Please # to comment.