Skip to content

Question about HttpClient #31

Open
@tacman

Description

@tacman

I'm fixing the signatures so that PHP 8.4 doesn't throw warnings about implicit nullables.

    /**
     * @param string $key Google API key
     */
    public function __construct($key, ?HttpClient $httpClient = null, RequestFactory $requestFactory = null)

Of course, I'd love to put ?string in front of $key, but I can't remember when that was allowed. It's the main reason I want to drop old versions of PHP.

Static analysis is complaining about HttpClient though. Can it be replaced with ClientInterface? Or just keep this until we get psr-3 working?

Image

Image

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