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 the AlgoliaSearch Inventory version to 1.0.5, as per this version change made here https://github.com/algolia/algoliasearch-inventory-magento-2/compare/1.0.4…1.0.5.