Skip to content
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for
### Changed
- Added support for version v2.1-25.2.00.00 of the DocuSign ESignature API.
- Updated the SDK release version.
- Modernized constructor classes in Api, Client and Model files (including Configuration.php file) by adding `?array $data = null` to address deprecated warnings in PHP.
- Added return types (`bool`, `mixed`, and `void`) to several functions in model files to improve type safety and compatibility with modern PHP versions.

## [v8.1.0] - eSignature API v2.1-25.1.00.02 - 2025-05-05
### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/Api/CommentsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function getApiClient()
*
* @return CommentsApi
*/
public function setApiClient(\DocuSign\eSign\Client\ApiClient $apiClient)
public function setApiClient(?\DocuSign\eSign\Client\ApiClient $apiClient)
{
$this->apiClient = $apiClient;
return $this;
Expand Down
8 changes: 4 additions & 4 deletions src/Model/CompleteSignHashResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public function setRemainingSignatureRequests($remaining_signature_requests)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -306,7 +306,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
Expand All @@ -319,7 +319,7 @@ public function offsetGet($offset)
*
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if (is_null($offset)) {
$this->container[] = $value;
Expand All @@ -335,7 +335,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Model/CompleteSignRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public function setTransactionId($transaction_id)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -396,7 +396,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
Expand All @@ -409,7 +409,7 @@ public function offsetGet($offset)
*
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if (is_null($offset)) {
$this->container[] = $value;
Expand All @@ -425,7 +425,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Model/Credential.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public function setValue($value)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -306,7 +306,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
Expand All @@ -319,7 +319,7 @@ public function offsetGet($offset)
*
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if (is_null($offset)) {
$this->container[] = $value;
Expand All @@ -335,7 +335,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Model/CustomFieldV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public function setValue($value)
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -336,7 +336,7 @@ public function offsetExists($offset)
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
Expand All @@ -347,7 +347,7 @@ public function offsetGet($offset)
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if (is_null($offset)) {
$this->container[] = $value;
Expand All @@ -361,7 +361,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Model/DocumentSecurityStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public function setOcsps($ocsps)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -306,7 +306,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
Expand All @@ -319,7 +319,7 @@ public function offsetGet($offset)
*
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if (is_null($offset)) {
$this->container[] = $value;
Expand All @@ -335,7 +335,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Model/DocumentUpdateInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ public function setTimeStampField($time_stamp_field)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -426,7 +426,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
Expand All @@ -439,7 +439,7 @@ public function offsetGet($offset)
*
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if (is_null($offset)) {
$this->container[] = $value;
Expand All @@ -455,7 +455,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/EnvelopeTemplateDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ public function setUri($uri)
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Model/ExternalClaim.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public function setValue($value)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -336,7 +336,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
Expand All @@ -349,7 +349,7 @@ public function offsetGet($offset)
*
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if (is_null($offset)) {
$this->container[] = $value;
Expand All @@ -365,7 +365,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Model/FolderItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ public function setUri($uri)
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -700,7 +700,7 @@ public function offsetExists($offset)
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
Expand All @@ -711,7 +711,7 @@ public function offsetGet($offset)
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if (is_null($offset)) {
$this->container[] = $value;
Expand All @@ -725,7 +725,7 @@ public function offsetSet($offset, $value)
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Model/GroupBrands.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public function setBrandOptions($brand_options)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -307,7 +307,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
Expand All @@ -320,7 +320,7 @@ public function offsetGet($offset)
*
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if (is_null($offset)) {
$this->container[] = $value;
Expand All @@ -336,7 +336,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Model/ReportInProductField.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public function setSelected($selected)
*
* @return boolean
*/
public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->container[$offset]);
}
Expand All @@ -338,7 +338,7 @@ public function offsetExists($offset)
*
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
Expand All @@ -351,7 +351,7 @@ public function offsetGet($offset)
*
* @return void
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
if (is_null($offset)) {
$this->container[] = $value;
Expand All @@ -367,7 +367,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->container[$offset]);
}
Expand Down
Loading