Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cztk opened this issue Oct 4, 2023 · 2 comments

Comments

@cztk
Copy link

cztk commented Oct 4, 2023

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
Copy link

Still this error..

@daniwe4
Copy link

daniwe4 commented Feb 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants