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

Handle null errors in Action model instantiation #118

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

jprangenbergde
Copy link
Contributor

On volume creation, error is not available in the response.

Undefined property: stdClass::$error {"userId":1,"exception":"[object] (ErrorException(code: 0): Undefined property: stdClass::$error at /var/www/html/vendor/lkdevelopment/hetzner-cloud-php-sdk/src/Models/Actions/Action.php:153)

Previously, the error property could be undefined, leading to potential issues during object creation. This update ensures that error defaults to null if not provided, enhancing the robustness of the Action model instantiation process.

Previously, the `error` property could be undefined, leading to potential issues during object creation. This update ensures that `error` defaults to `null` if not provided, enhancing the robustness of the Action model instantiation process.
@jprangenbergde
Copy link
Contributor Author

@LKaemmerling: Can we merge it and create a new tag?

@LKaemmerling LKaemmerling merged commit 94759c7 into LKDevelopment:master Sep 20, 2024
5 checks passed
@LKaemmerling
Copy link
Collaborator

Good catch, thank you! I will create a patch release.

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

Successfully merging this pull request may close these issues.

2 participants