From 10658d4b82edf87908e82fc0121226c9b5a2f623 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 9 Jun 2026 13:00:12 +0000 Subject: [PATCH 1/4] Initial plan From 2d3b4a57fca0bfc1ec8dce879e02bf70a28684ce Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 9 Jun 2026 13:03:16 +0000 Subject: [PATCH 2/4] fix: keep $clientID as deprecated alias in sync with $clientId, fix nullable Throwable --- src/OneLoginClient.php | 6 +++++- src/exceptions/OneLoginException.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/OneLoginClient.php b/src/OneLoginClient.php index 992e7a2..fff24a7 100644 --- a/src/OneLoginClient.php +++ b/src/OneLoginClient.php @@ -45,7 +45,10 @@ class OneLoginClient /** @var GuzzleHttp\Client client */ protected $client; - /** @var string $clientID OneLogin Client ID */ + /** @var string $clientId OneLogin Client ID */ + public $clientId; + + /** @deprecated Use $clientId instead */ public $clientID; /** @var string $clientSecret OneLogin Client */ @@ -88,6 +91,7 @@ public function __construct($clientId, $clientSecret, $region = "us", $maxResult { $this->client = new Client(); $this->clientId = $clientId; + $this->clientID = $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; From ee3a21471335186d2de5fabd62ecc5f672123469 Mon Sep 17 00:00:00 2001 From: Will Munslow Date: Tue, 9 Jun 2026 06:33:17 -0700 Subject: [PATCH 3/4] keep properties consistent in both directions Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/OneLoginClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OneLoginClient.php b/src/OneLoginClient.php index fff24a7..ea7210d 100644 --- a/src/OneLoginClient.php +++ b/src/OneLoginClient.php @@ -91,7 +91,7 @@ public function __construct($clientId, $clientSecret, $region = "us", $maxResult { $this->client = new Client(); $this->clientId = $clientId; - $this->clientID = $clientId; + $this->clientID =& $this->clientId; $this->clientSecret = $clientSecret; $this->urlBuilder = new UrlBuilder($region); $this->userAgent = OneLoginClient::CUSTOM_USER_AGENT; From d632e7250256117d33fb363f86db36cbdb7de51a Mon Sep 17 00:00:00 2001 From: Will Munslow Date: Tue, 9 Jun 2026 06:34:16 -0700 Subject: [PATCH 4/4] documentation fix Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/OneLoginClient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OneLoginClient.php b/src/OneLoginClient.php index ea7210d..2f7d321 100644 --- a/src/OneLoginClient.php +++ b/src/OneLoginClient.php @@ -48,7 +48,9 @@ class OneLoginClient /** @var string $clientId OneLogin Client ID */ public $clientId; - /** @deprecated Use $clientId instead */ + /** @var string $clientID OneLogin Client ID + * @deprecated Use $clientId instead + */ public $clientID; /** @var string $clientSecret OneLogin Client */