LKDevelopment / hetzner-cloud-php-sdk

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

Bugfix: Floating IP description which can be null #36

Closed teyeheimans closed 4 years ago

teyeheimans commented 4 years ago

This caused an TypeError: Argument 2 passed to FloatingIp::__construct() must be of the type string, null given.

This fix resolves that issue.

teyeheimans commented 4 years ago

I have removed the string type hint completely. This package uses php 7.0 or greater. Nullable types are added in php version 7.1, thus cannot be used.

LKaemmerling commented 4 years ago

Thank you! I will release this shortly.