Skip to content
Permalink
Browse files

Fix possible early-static binding issues.

  • Loading branch information...
markstory committed Jan 7, 2013
1 parent 135bc8f commit cecd3ae5505ba7ee90a7e277d42949c0801034be
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Network/Http/Request.php
@@ -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'));
}

0 comments on commit cecd3ae

Please sign in to comment.
You can’t perform that action at this time.