Skip to content

Commit 9d1099c

Browse files
committed
Re-added alias to Http
Fixed typo
1 parent f58a08d commit 9d1099c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Tests/GithubObjectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function testFetchUrlToken()
155155
self::assertEquals(
156156
array('Authorization' => 'token MyTestToken'),
157157
$this->client->getOption('headers'),
158-
'Token should bhe propagated as a header.'
158+
'Token should be propagated as a header.'
159159
);
160160
}
161161
}

src/AbstractGithubObject.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace Joomla\Github;
1010

1111
use Joomla\Http\Exception\UnexpectedResponseException;
12-
use Joomla\Http\Http;
12+
use Joomla\Http\Http as BaseHttp;
1313
use Joomla\Http\Response;
1414
use Joomla\Registry\Registry;
1515
use Joomla\Uri\Uri;
@@ -32,7 +32,7 @@ abstract class AbstractGithubObject
3232
/**
3333
* The HTTP client object to use in sending HTTP requests.
3434
*
35-
* @var Http
35+
* @var BaseHttp
3636
* @since 1.0
3737
*/
3838
protected $client;
@@ -82,14 +82,14 @@ abstract class AbstractGithubObject
8282
* Constructor.
8383
*
8484
* @param Registry $options GitHub options object.
85-
* @param Http $client The HTTP client object.
85+
* @param BaseHttp $client The HTTP client object.
8686
*
8787
* @since 1.0
8888
*/
89-
public function __construct(Registry $options = null, Http $client = null)
89+
public function __construct(Registry $options = null, BaseHttp $client = null)
9090
{
9191
$this->options = $options ?: new Registry;
92-
$this->client = $client ?: new Http($this->options);
92+
$this->client = $client ?: new BaseHttp($this->options);
9393

9494
// Make sure the user agent string is defined.
9595
if (!isset($this->options['userAgent']))

0 commit comments

Comments
 (0)