diff --git a/src/OAuth2/Request.php b/src/OAuth2/Request.php index faec0ceb3..c92cee821 100644 --- a/src/OAuth2/Request.php +++ b/src/OAuth2/Request.php @@ -191,7 +191,7 @@ private function getHeadersFromServer($server) */ public static function createFromGlobals() { - $class = __CLASS__; + $class = get_called_class(); $request = new $class($_GET, $_POST, array(), $_COOKIE, $_FILES, $_SERVER); $contentType = $request->server('CONTENT_TYPE', '');