Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Model\ResourceModel\Product\Collection::addIsSaleableAttributeToFilter() must be of the type array or null, int given, called in /var/www/horecaxl2/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php on line 1582 and defined in /var/www/horecaxl2/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:2477 Stack trace: #0 /var/www/horecaxl2/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php(1582): Magento\Catalog\Model\ResourceModel\Product\Collection->addIsSaleableAttributeToFilter(1) #1 /var/www/horecaxl2/app/code/Smartwave/Filterproducts/Block/Home/SaleList.php(70): Magento\Catalog\Model\ResourceModel\Product\Collection->addAttributeToFilter('is_saleable', 1, 'left') #2 /var/www/horecaxl2/app/code/Smartwave/Filterproducts/Block/Home/SaleList.php(33): Smartwave\Filterproducts\Block\Home\SaleList->getProducts() #3 /var/www/horecaxl2/vendor/magento/module-catalog/Block/Product/ListProduct.php(1 in /var/www/horecaxl2/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php on line 2477