Skip to content

PHP 8.4 causes deprecation errors in Cloudflare\API\Adapter\Guzzle::__construct() #277

@generalludd

Description

@generalludd

A simple change is needed to src/Adapter/Guzzle.php:17 to make it PHP 8.4 compatible. This does not cause a fatal error in most cases, but can stall or interrupt a task under certain circumstances.

The simple fix is to adjust the signature to make the $baseURI a ?string:
public function __construct(Auth $auth, ?string $baseURI = null)

Here's a patch:

cloudflare-sdk-php84-nullable-params.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions