transip / tipctl

The command line interface for the TransIP API
https://api.transip.nl/rest/docs.html
Apache License 2.0
16 stars 4 forks source link

every command output same deprecated error #6

Closed jaydouble closed 2 years ago

jaydouble commented 2 years ago
bash-5.1# tipctl list

Deprecated: Return type of Transip\Api\Library\Entity\AbstractEntity::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /tmp/vendor/transip/transip-api-php/src/Entity/AbstractEntity.php on line 18
Transip RestAPI CLI 6.12.0

Can you fix this?

I've created a fresh docker container with this Dockerfile:

FROM composer

RUN composer global require transip/tipctl && \
    apk add openssl\
    wget \
    jq 

ENV PATH="/tmp/vendor/bin:${PATH}"

In other words:

And now I'm having a container with PHP 8.1.1, Composer version 2.2.2, and Transip RestAPI CLI 6.12.0. And a deprecated warning on every request.

My PHP skills are not enough to solve this and create a PR.

dionbosschieter commented 2 years ago

Hi @jaydouble,

We'll look into it. This shouldn't be too difficult to fix.

samihsoylu commented 2 years ago

Hi @jaydouble

This issue is now resolved in v6.12.1. 👍🏻