File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 99namespace Joomla \Github ;
1010
1111use Joomla \Http \Exception \UnexpectedResponseException ;
12- use Joomla \Http \Http ;
12+ use Joomla \Http \Http as BaseHttp ;
1313use Joomla \Http \Response ;
1414use Joomla \Registry \Registry ;
1515use 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 ' ]))
You can’t perform that action at this time.
0 commit comments