Skip to content

Commit

Permalink
Update method declarations to match Core changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ristokekovic committed Dec 30, 2024
1 parent 38952a5 commit 312ad91
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DataAccess/Entities/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function getConfig(): EntityConfiguration
/**
* @inheritDoc
*/
public function inflate(array $data)
public function inflate(array $data): void
{
parent::inflate($data);

Expand Down
4 changes: 2 additions & 2 deletions DataAccess/Entities/PaymentMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class PaymentMethods extends Entity
/**
* @inheritDoc
*/
public function getConfig()
public function getConfig(): EntityConfiguration
{
$indexMap = new IndexMap();

Expand All @@ -48,7 +48,7 @@ public function getConfig()
*
* @throws \Exception
*/
public function inflate(array $data)
public function inflate(array $data): void
{
parent::inflate($data);

Expand Down
2 changes: 1 addition & 1 deletion Repository/BaseRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct()
*
* @param string $entityClass Repository entity class.
*/
public function setEntityClass($entityClass)
public function setEntityClass($entityClass): void
{
$this->entityClass = $entityClass;
}
Expand Down
4 changes: 2 additions & 2 deletions Repository/QueueItemRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function findOldestQueuedItems($priority, $limit = 10)
/**
* @inheridoc
*/
public function batchStatusUpdate(array $ids, $status)
public function batchStatusUpdate(array $ids, $status): void
{
if (empty($ids)) {
return;
Expand All @@ -81,7 +81,7 @@ public function batchStatusUpdate(array $ids, $status)
*
* @throws QueueItemSaveException if queue item could not be saved
*/
public function saveWithCondition(QueueItem $queueItem, array $additionalWhere = [])
public function saveWithCondition(QueueItem $queueItem, array $additionalWhere = []): int
{
return $this->resourceEntity->saveWithCondition($queueItem, $additionalWhere);
}
Expand Down
2 changes: 1 addition & 1 deletion Services/Infrastructure/LoggerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(LoggerInterface $logger)
*
* @param LogData $data
*/
public function logMessage(LogData $data)
public function logMessage(LogData $data): void
{
/** @var ConfigurationService $configService */
$configService = ServiceRegister::getService(Configuration::CLASS_NAME);
Expand Down

0 comments on commit 312ad91

Please sign in to comment.