Unable to set refresh_documents
in phpunit.xml
due to strict bool checking
#45
Labels
bug
Something isn't working
Describe the bug
Due to:
elastic-scout-driver/src/Engine.php
Line 38 in 9b15115
And:
https://github.com/babenkoivan/elastic-adapter/blob/50e9559774c09688a0f5024c964ab22b97c554de/src/Documents/DocumentManager.php#L22
We can't supply a "truthy" value to
refresh_documents
in ourphpunit.xml
:An exception is thrown:
To Reproduce
<env name="ELASTIC_SCOUT_DRIVER_REFRESH_DOCUMENTS" value="1"/>
to yourphpunit.xml
Expected behavior
We should cast the value to a boolean before passing it to the
DocumentManager
.The text was updated successfully, but these errors were encountered: