Skip to content

Deprecation warnings in PHP 8.4 #562

@massa-man

Description

@massa-man

The SDK throws deprecation warnings due to "Implicitly nullable parameter declarations deprecated" in PHP 8.4. (https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated)

An example of a warning being issued:

ErrorException: QuickBooksOnline\API\Core\HttpClients\CurlHttpClient::__construct(): Implicitly marking parameter $curl as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/quickbooks/v3-php-sdk/src/Core/HttpClients/CurlHttpClient.php:31
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(576): Spatie\Ignition\Ignition->renderError(8192, 'QuickBooksOnlin...', '/var/www/html/v...', 31)
#1 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#2 /var/www/html/vendor/composer/ClassLoader.php(427): {closure:Composer\Autoload\ClassLoader::initializeIncludeClosure():575}('/var/www/html/v...')
#3 /var/www/html/vendor/quickbooks/v3-php-sdk/src/Core/HttpClients/ClientFactory.php(27): Composer\Autoload\ClassLoader->loadClass('QuickBooksOnlin...')
#4 /var/www/html/vendor/quickbooks/v3-php-sdk/src/DataService/DataService.php(217): QuickBooksOnline\API\Core\HttpClients\ClientFactory::createClient('curl')
#5 /var/www/html/vendor/quickbooks/v3-php-sdk/src/DataService/DataService.php(177): QuickBooksOnline\API\DataService\DataService->setupRestHandler(Object(QuickBooksOnline\API\Core\ServiceContext))
#6 /var/www/html/vendor/quickbooks/v3-php-sdk/src/DataService/DataService.php(165): QuickBooksOnline\API\DataService\DataService->updateServiceContextSettingsForOthers(Object(QuickBooksOnline\API\Core\ServiceContext))
#7 /var/www/html/vendor/quickbooks/v3-php-sdk/src/DataService/DataService.php(391): QuickBooksOnline\API\DataService\DataService->__construct(Object(QuickBooksOnline\API\Core\ServiceContext))
#8 QuickBooksOnline\API\DataService\DataService::Configure(Array)

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