Skip to content

Commit

Permalink
Changing self:: to static:: to allow for custom authentication types …
Browse files Browse the repository at this point in the history
…in extending classes
  • Loading branch information
tklever authored and dima committed Nov 27, 2014
1 parent 9427b39 commit 5589519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ protected function openTempStream()
*/
public function setAuth($user, $password, $type = self::AUTH_BASIC)
{
if (!defined('self::AUTH_' . strtoupper($type))) {
if (!defined('static::AUTH_' . strtoupper($type))) {
throw new Exception\InvalidArgumentException("Invalid or not supported authentication type: '$type'");
}
if (empty($user)) {
Expand Down

0 comments on commit 5589519

Please sign in to comment.