Skip to content

Commit

Permalink
FRW-7400 Upgraded PHPStan to 1.10.*. (#10911)
Browse files Browse the repository at this point in the history
FRW-7400 Update PHPStan to 1.10.*
  • Loading branch information
olhalivitchuk authored May 6, 2024
1 parent 8d060d2 commit 3571ce8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Spryker/Zed/MultiCart/Persistence/MultiCartRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ public function findSimilarCustomerQuoteNames(QuoteTransfer $quoteTransfer): arr
}
$quoteQuery->select([SpyQuoteTableMap::COL_NAME]);

return $quoteQuery->find()->toArray();
/** @var \Propel\Runtime\Collection\ArrayCollection $quoteNames */
$quoteNames = $quoteQuery->find();

return $quoteNames->toArray();
}

/**
Expand Down Expand Up @@ -82,9 +85,11 @@ public function findCustomerQuoteData(string $customerReference): array
->addAsColumn(QuoteTransfer::IS_DEFAULT, SpyQuoteTableMap::COL_IS_DEFAULT)
->addAsColumn(QuoteTransfer::NAME, SpyQuoteTableMap::COL_NAME);

return $quoteQuery->select([QuoteTransfer::ID_QUOTE, QuoteTransfer::IS_DEFAULT, QuoteTransfer::NAME])
->find()
->toArray();
/** @var \Propel\Runtime\Collection\ArrayCollection $quotes */
$quotes = $quoteQuery->select([QuoteTransfer::ID_QUOTE, QuoteTransfer::IS_DEFAULT, QuoteTransfer::NAME])
->find();

return $quotes->toArray();
}

/**
Expand Down

0 comments on commit 3571ce8

Please sign in to comment.