You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: