Skip to content
Merged
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
8 changes: 7 additions & 1 deletion src/OneLoginClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ class OneLoginClient
/** @var GuzzleHttp\Client client */
protected $client;

/** @var string $clientID OneLogin Client ID */
/** @var string $clientId OneLogin Client ID */
public $clientId;

/** @var string $clientID OneLogin Client ID
* @deprecated Use $clientId instead
*/
public $clientID;

/** @var string $clientSecret OneLogin Client */
Expand Down Expand Up @@ -88,6 +93,7 @@ public function __construct($clientId, $clientSecret, $region = "us", $maxResult
{
$this->client = new Client();
$this->clientId = $clientId;
$this->clientID =& $this->clientId;
$this->clientSecret = $clientSecret;
Comment thread
Copilot marked this conversation as resolved.
$this->urlBuilder = new UrlBuilder($region);
$this->userAgent = OneLoginClient::CUSTOM_USER_AGENT;
Expand Down
2 changes: 1 addition & 1 deletion src/exceptions/OneLoginException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class OneLoginException extends \Exception
/** @var string $errorAttribute The attribute that caused the error if available */
protected $errorAttribute;

public function __construct($message = "", $code = 0, $errorAttribute = null, \Throwable $previous = null)
public function __construct($message = "", $code = 0, $errorAttribute = null, ?\Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
$this->errorCode = $code;
Expand Down
Loading