-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
The Pipedrive PHP client API generates multiple deprecation warnings when used with PHP 8.4 due to implicitly nullable parameters that should be explicitly marked as nullable.
Environment
- PHP Version: 8.4
- Pipedrive package version: 12.0.2
- Pipedrive API Client versions: v1 and v2
Code example:
<?php
use Pipedrive\versions\v2\Api\PersonsApi;
use Pipedrive\versions\v2\Configuration;
$config = (new Configuration)
->setApiKey('x-api-token', 'your-api-token');
// This line triggers deprecation warnings
$client = new PersonsApi(config: $config);Deprecation warnings:
Pipedrive\versions\v2\Api\PersonsApi::__construct(): Implicitly marking parameter $client as nullable is deprecated, the explicit nullable type must be used instead in /vendor/pipedrive/pipedrive/lib/versions/v2/Api/PersonsApi.php on line 85
Pipedrive\versions\v2\Model\PersonRequestBodyEmails::__construct(): Implicitly marking parameter $data as nullable is deprecated, the explicit nullable type must be used instead in vendor/pipedrive/pipedrive/lib/versions/v2/Model/PersonRequestBodyEmails.php on line 210.
All the constructors need to be updated to use explicit nullable type declarations.
cschra, radimvaculik, MPJHorner and Deascenh
Metadata
Metadata
Assignees
Labels
No labels