Skip to content

Commit

Permalink
[PHPStan] Ignore errors in RemainingTotalProvider class
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafikooo committed Nov 6, 2024
1 parent e0f3891 commit b7dfd00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ parameters:
# Test dependencies
- 'tests/Application/app/**.php'
- 'tests/Application/src/**.php'

# BC compatibility
- 'src/Converter/OrderItemUnitLineItemsConverter.php'
- 'src/Converter/RequestToOrderItemUnitRefundConverter.php'
- 'src/Converter/RequestToShipmentRefundConverter.php'
- 'src/Converter/ShipmentLineItemsConverter.php'
- 'src/Provider/RemainingTotalProvider.php'

ignoreErrors:
- '/Method Sylius\\RefundPlugin\\Entity\\CustomerBillingData::id\(\) has no return type specified./'
- '/Call to an undefined method [a-zA-Z\\]+::createQueryBuilder\(\)./'
- '/Method Sylius\\RefundPlugin\\[a-zA-Z\\]+::getFlashBag\(\) should return Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface but returns Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface\./'
- '/Method Sylius\\RefundPlugin\\Entity\\CustomerBillingData::getId\(\) has no return type specified./'
- '/Method Sylius\\RefundPlugin\\Entity\\CustomerBillingData::id\(\) has no return type specified./'
- '/Method Sylius\\RefundPlugin\\Entity\\CustomerBillingData::setId\(\) has parameter \$id with no type specified./'
- '/Method Sylius\\RefundPlugin\\Entity\\CustomerBillingDataInterface::id\(\) has no return type specified./'
- '/Method Sylius\\RefundPlugin\\Entity\\CustomerBillingDataInterface::setId\(\) has parameter \$id with no type specified./'
- '/Method Sylius\\RefundPlugin\\[a-zA-Z\\]+::getFlashBag\(\) should return Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface but returns Symfony\\Component\\HttpFoundation\\Session\\SessionBagInterface\./'
- '/Call to an undefined method [a-zA-Z\\]+::createQueryBuilder\(\)./'
1 change: 0 additions & 1 deletion src/Provider/RemainingTotalProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ final class RemainingTotalProvider implements RemainingTotalProviderInterface

private ?RepositoryInterface $adjustmentRepository = null;

/** @phpstan-ignore-next-line */
public function __construct(
private readonly ServiceProviderInterface|RepositoryInterface $refundUnitTotalProvider,
private RepositoryInterface $refundRepository,
Expand Down

0 comments on commit b7dfd00

Please sign in to comment.