diff --git a/src/OneLoginClient.php b/src/OneLoginClient.php index 992e7a2..2f7d321 100644 --- a/src/OneLoginClient.php +++ b/src/OneLoginClient.php @@ -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 */ @@ -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; $this->urlBuilder = new UrlBuilder($region); $this->userAgent = OneLoginClient::CUSTOM_USER_AGENT; diff --git a/src/exceptions/OneLoginException.php b/src/exceptions/OneLoginException.php index 13b9a0b..d0f564d 100644 --- a/src/exceptions/OneLoginException.php +++ b/src/exceptions/OneLoginException.php @@ -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;