Skip to content

Commit

Permalink
Fix PhpStan
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Feb 7, 2022
1 parent c4e0d56 commit a5cb0e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"baraja-core/newsletter": "^1.0",
"baraja-core/emailer": "^1.2",
"baraja-core/variable-generator": "^2.0",
"baraja-core/bank-transaction-authorizator": "^2.0"
"baraja-core/bank-transaction-authorizator": "^2.0",
"baraja-core/doctrine-fulltext-search": "^3.2 >=3.2.2"
},
"require-dev": {
"heureka/overeno-zakazniky": "^3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/CmsOrderEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ private function getOrderById(int $id): Order

/**
* @param array<string, numeric-string> $sum
* @return array<string, numeric-string>
* @return array<string, string>
*/
private function formatSumPrices(array $sum): array
{
Expand Down
1 change: 1 addition & 0 deletions src/Repository/OrderFeedRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function __construct(
if (class_exists(Invoice::class) === false) {
throw new \LogicException('Package "baraja-core/shop-invoice" has not been installed.');
}
/** @phpstan-ignore-next-line */
$invoiceRepository = $entityManager->getRepository(Invoice::class);
assert($invoiceRepository instanceof OrderInvoiceRepository);
$this->invoiceRepository = $invoiceRepository;
Expand Down

0 comments on commit a5cb0e3

Please sign in to comment.