Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

fix: make Auth classes compatible with rmccue/requests >=1.8 #330

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Auth/BasicAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public function __construct($token, $key)
*
* @param \Requests_Hooks $hooks Hook system
*/
public function register(Requests_Hooks &$hooks)
public function register(Requests_Hooks $hooks)
{
$hooks->register('requests.before_request', [&$this, 'before_request']);
$hooks->register('requests.before_request', [$this, 'before_request']);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Auth/OAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public function __construct($accessToken)
*
* @param \Requests_Hooks $hooks Hook system
*/
public function register(Requests_Hooks &$hooks)
public function register(Requests_Hooks $hooks)
{
$hooks->register('requests.before_request', [&$this, 'before_request']);
$hooks->register('requests.before_request', [$this, 'before_request']);
}

/**
Expand Down