Remove some solr definition in functionMap #4219
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For Solr, there is so many stub, so for an easier review I'll split the PR. This is the first part
Also, after JetBrains/phpstorm-stubs#1777 i'll be able to remove more.
Reflection changes are
Seems ok
In https://www.php.net/manual/en/solrclient.system.php
it say "Returns a SolrGenericResponse object on success."
In https://www.php.net/manual/en/solrdocument.getfieldcount.php it say
Returns an integer on success and [false](https://www.php.net/manual/en/reserved.constants.php#constant.false) on failure.
I used a benevolent union since it previously was
int
.Docs say https://www.php.net/manual/fr/solrdocument.offsetset.php true on success, false on failure
Seems ok to me, destructor has a void return type by default
Ok
Ok to me
https://www.php.net/manual/en/solrdocument.getfield.php say it can return false
same idea
cf https://www.php.net/manual/en/solrclient.commit.php
Seems ok to me
Not ok, I made a commit to fix this.
Seems ok to me
Same idea with https://www.php.net/manual/en/solrdocument.getinputdocument.php
same idea with https://www.php.net/manual/en/solrclient.threads.php