Skip to content

Commit

Permalink
Fix possible early-static binding issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 7, 2013
1 parent 135bc8f commit cecd3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/Http/Request.php
Expand Up @@ -66,7 +66,7 @@ public function method($method = null) {
if ($method === null) {
return $this->_method;
}
$name = __CLASS__ . '::METHOD_' . strtoupper($method);
$name = get_called_class() . '::METHOD_' . strtoupper($method);
if (!defined($name)) {
throw new Error\Exception(__d('cake_dev', 'Invalid method type'));
}
Expand Down

0 comments on commit cecd3ae

Please sign in to comment.