Skip to content

Commit

Permalink
fix rector issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rommelfreddy committed Sep 13, 2023
1 parent c8b4058 commit 75ac7ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
$rectorConfig->skip([
\Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector::class,
\Rector\CodeQuality\Rector\Ternary\SwitchNegatedTernaryRector::class,
\Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector::class,
]);

$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
Expand Down
3 changes: 2 additions & 1 deletion src/Components/RatepayApi/Dto/PaymentRequestData.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Ratepay\RpayPayments\Components\RatepayApi\Dto;

use Shopware\Core\Checkout\Customer\CustomerEntity;
use Shopware\Core\Checkout\Order\Aggregate\OrderTransaction\OrderTransactionEntity;
use Shopware\Core\Checkout\Order\OrderEntity;
use Shopware\Core\Framework\Validation\DataBag\DataBag;
Expand Down Expand Up @@ -102,7 +103,7 @@ public function getPaymentMethodId(): string
return $this->getOrder()->getTransactions()->last()->getPaymentMethodId();
}

public function getCustomer()
public function getCustomer(): CustomerEntity
{
return $this->getOrder()->getOrderCustomer()->getCustomer();
}
Expand Down

0 comments on commit 75ac7ab

Please sign in to comment.