opensearch-project / opensearch-php

Official PHP Client for OpenSearch
Other
109 stars 58 forks source link

Add more precise types #220

Closed stof closed 3 months ago

stof commented 3 months ago

Description

This adds more precise types for some parts of the package. This PR specifically targets only places that are not generated by the GenerateEndpoints script (this will be covered by a separate PR solving #217). I found those by running phpstan at level 6 (instead of the existing config using level 5). This PR does not solve all non-endpoints errors of level 6:

Those can be solved later (before enabling level 6)

Issues Resolved

n/a

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.