LKDevelopment / hetzner-cloud-php-sdk

A PHP SDK for the Hetzner Cloud API
MIT License
104 stars 51 forks source link

LoadBalancerType::__construct(): Argument #3 ($deprecated) must be of type string, null given #108

Open cztk opened 9 months ago

cztk commented 9 months ago

Maybe I'm just too stoopid but $hetznerClient->loadBalancers()->getByName(); also ByID both throw

PHP Fatal error: Uncaught TypeError: LKDev\HetznerCloud\Models\LoadBalancerTypes\LoadBalancerType::__construct(): Argument #3 ($deprecated) must be of type string, null given

JurePotocnik commented 4 months ago

Still this error..

daniwe4 commented 4 months ago

Same error here. It seems that deprecated is a null value. If i a add '$input->deprecated ?? ""' to the self call on line number 92 in lkdevelopment/hetzner-cloud-php-sdk/src/Models/LoadBalancerTypes/LoadBalancerType.php it works.