Magento 2.4.5: Declaration of OrderFilter::createFilterGroups array must be compatible
davordragic opened this issue · comments
Steps to reproduce:
- install fresh Magento 2.4.5
- add Scandipwa composer modules
- bin/magneto setup:upgrade && bin/magento setup:di:compile
- error on compile
Actual result
Compilation was started.
Repositories code generation... 1/9 [===>------------------------] 11% < 1 sec 115.0 MiB
Fatal error: Declaration of ScandiPWA\SalesGraphQl\Model\Resolver\CustomerOrders\Query\OrderFilter::createFilterGroups(array $args, int $userId, int $storeId, array $storeIds): array must be compatible with Magento\SalesGraphQl\Model\Resolver\CustomerOrders\Query\OrderFilter::createFilterGroups(array $args, int $userId, int $storeId): array in /var/www/html/vendor/scandipwa/sales-graphql/Model/Resolver/CustomerOrders/Query/OrderFilter.php on line 91
Expected result
no error on setup:di:compile
Versions
- ScandiPWA: scandipwa/source < not found? I copied all required from scandipwa composer.json to magento 2 composer.json and did composer update.
- Magento 2.4.5 (in own docker container)