If you're getting the following error upon upgrading to version 3.10.3 (or higher) of Algolia's Magento extension:
Fatal error: Declaration of Algolia\AlgoliaSearchInventory\Helper\InventoryProductHelper::addMandatoryAttributes($products) must be compatible with Algolia\AlgoliaSearch\Helper\Entity\ProductHelper::addMandatoryAttributes(Magento\Catalog\Model\ResourceModel\Product\Collection $products): void in /var/www/html/vendor/algolia/algoliasearch-inventory-magento-2/Helper/InventoryProductHelper.php on line 31
You need to make sure to update AlgoliaSearch Inventory to version 1.0.5[1] which results this issue.
[1]: https://github.com/algolia/algoliasearch-inventory-magento-2/compare/1.0.4…1.0.5.