-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
On php 8.1 when creating a new AnnotateImageRequest()
<?php $imageRequest = new AnnotateImageRequest();
A php fatal error is triggered:
Return type of GoogleCloudVision\Request\AnnotateImageRequest::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vagrant/vendor/wapnen/google-cloud-vision-php/GoogleCloudVision/Request/AnnotateImageRequest.php:68
If the #[\ReturnTypeWillChange] attribute is addeded on each jsonSerialize function, php stops complaining without me being able to detect side-effects, but i am unsure about this being the 'correct' solution.
Metadata
Metadata
Assignees
Labels
No labels