hetzner-cloud-php-sdk icon indicating copy to clipboard operation
hetzner-cloud-php-sdk copied to clipboard

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

Open cztk opened this issue 2 years ago • 2 comments

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

cztk avatar Oct 04 '23 11:10 cztk

Still this error..

JurePotocnik avatar Feb 12 '24 13:02 JurePotocnik

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.

daniwe4 avatar Feb 15 '24 10:02 daniwe4