Description
Use enums (https://www.php.net/manual/en/language.types.enumerations.php) wherever possible, e.g. in OperationType. The setOperation method of OperationIndexParams expects a parameter of type OperationType, but MOVE and COPY are currently defined as a string, so calling
(new OperationIndexParams())
->setOperation(OperationType::MOVE)
generates the warning Expected parameter of type '\Algolia\AlgoliaSearch\Model\Search\OperationType', 'string' provided.
Client
All
Version
4.15.0
Description
Use enums (https://www.php.net/manual/en/language.types.enumerations.php) wherever possible, e.g. in OperationType. The
setOperationmethod ofOperationIndexParamsexpects a parameter of typeOperationType, butMOVEandCOPYare currently defined as a string, so callinggenerates the warning
Expected parameter of type '\Algolia\AlgoliaSearch\Model\Search\OperationType', 'string' provided.Client
All
Version
4.15.0