Skip to content

PHP 8+ Error, missing #[\ReturnTypeWillChange] on EnvelopeTemplateDefinition  #214

Closed
@Caster000

Description

@Caster000

Hello,

Using the latest version of the SDK, 6.18, there is an error on prod environment.

PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of DocuSign\eSign\Model\EnvelopeTemplateDefinition::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/docusign/esign-client/src/Model/EnvelopeTemplateDefinition.php:564

It seems like this issue already happened and was fixed in 6.7.1: #165

But I think that the Model EnvelopeTemplateDefinition was forgotten in the PR because adding the attribute #[\ReturnTypeWillChange] to the methods solve the issue:

  • offsetSet($offset, $value)
  • offsetUnset($offset)
  • offsetExists($offset)
  • offsetGet($offset)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions