Skip to content

PHP8.4 deprecation warnings #133

@baldwinlouie

Description

@baldwinlouie

I've been using this client in a PHP8.4 environment. I'm getting the following errors:

Deprecated: Maclof\Kubernetes\Client::__construct(): Implicitly marking parameter $repositoryRegistry as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/maclof/kubernetes-client/src/Client.php on line 148

Deprecated: Maclof\Kubernetes\Client::__construct(): Implicitly marking parameter $httpClient as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/maclof/kubernetes-client/src/Client.php on line 148

Deprecated: Maclof\Kubernetes\Client::__construct(): Implicitly marking parameter $httpRequestFactory as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/maclof/kubernetes-client/src/Client.php on line 148

Deprecated: Maclof\Kubernetes\Client::__construct(): Implicitly marking parameter $streamFactory as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/maclof/kubernetes-client/src/Client.php on line 148

Deprecated: Maclof\Kubernetes\Client::sendRequest(): Implicitly marking parameter $apiVersion as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/maclof/kubernetes-client/src/Client.php on line 386

Deprecated: Maclof\Kubernetes\Repositories\Repository::delete(): Implicitly marking parameter $options as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/maclof/kubernetes-client/src/Repositories/Repository.php on line 158

Deprecated: Maclof\Kubernetes\Repositories\Repository::deleteByName(): Implicitly marking parameter $options as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/maclof/kubernetes-client/src/Repositories/Repository.php on line 166

Can these deprecation warnings be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions