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/Porto/Helper/Data.php(143): Magento\Catalog\Model\ResourceModel\Product\Collection->addAttributeToFilter('is_saleable', 1, 'left') #2 /var/www/horecaxl2/app/code/Smartwave/Porto/Helper/Data.php(158): Smartwave\Porto\Helper\Data->getCategoryProductIds(Object(Magento\Catalog\Model\Category\Interceptor)) #3 /var/www/horecaxl2/app/design/frontend/Smartwave/porto/Magento_Catalo in /var/www/horecaxl2/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php on line 2477