docusign-esign-php-client icon indicating copy to clipboard operation
docusign-esign-php-client copied to clipboard

Modernized constructors and added return types for PHP compatibility

Open atillavanilla opened this issue 6 months ago • 5 comments

What Changed

  • Updated constructors in Api, Client, and Model files (including Configuration.php) with ?array $data = null to fix PHP deprecation warnings.
  • Added return types (bool, mixed, void) to improve type safety and compatibility.

Why It’s Needed

  • Fixes PHP deprecation warnings and ensures compatibility with modern PHP versions.
  • Enhances code clarity and maintainability.

Considerations

  • Fully backward-compatible with PHP versions that support nullable types and return type declarations.
  • Minimum PHP version requirements may need updating.

atillavanilla avatar May 24 '25 14:05 atillavanilla