Skip to content

Incompatible declaration error in PHP 8.5 #808

Description

@armand-dfl

Since the release of PHP 8.5, the SoapClient::__doRequest() function has been updated with a new parameter (uriParserClass). So the declaration in AdsSoapClient.php is now incorrect, and you get this error:
Fatal error: Declaration of Google\AdsApi\Common\AdsSoapClient::__doRequest($request, $location, $action, $version, $one_way = 0) must be compatible with SoapClient::__doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false, ?string $uriParserClass = null): ?string ...

For now, you must remain on 8.4.

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