-
-
Notifications
You must be signed in to change notification settings - Fork 7
Description
In certain circumstances, we can see the following error:
PHP Fatal error: Uncaught TypeError: Docker\API\Model\HealthcheckResult::setStart(): Argument #1 ($start) must be of type ?DateTimeInterface, bool given, called in /usr/local/cylo-serverapi/vendor/beluga-php/docker-php-api/src/Normalizer/HealthcheckResultNormalizer.php on line 47 and defined in /usr/local/cylo-serverapi/vendor/beluga-php/docker-php-api/src/Model/HealthcheckResult.php:63
I'm not 100% certain what the circumstances are to reproduce the error yet, it may be a fresh container which has not run a healthcheck yet, in which case returning a boolean is not documented in the docker swagger: https://github.com/moby/moby/blob/217054ddea5517d391b69c4826b3a4cfa393b1e6/api/swagger.yaml#L852
If it is intended behaviour the swagger file will need to be updated.