Skip to content

Commit

Permalink
PAYOSWXP-121: fixes phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
amirinterlutions committed Mar 1, 2024
1 parent b81d409 commit 3df76a3
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/Components/ResendNotifyHandler/ResendNotifyHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,19 @@ public function send(): void

/** @var PayonePaymentNotificationQueueEntity $notification */
foreach ($notificationQueue as $notification) {
$messageDecode = base64_decode($notification->getMessage() ?: '', true);
/** @var NotificationForwardCommand $message */
$message = unserialize($messageDecode, []);

$this->notificationForwardHandler->handle($message, true);
$this->notificationQueueRepository->delete([['id' => $notification->getId()]], Context::createDefaultContext());
$messageDecode = null;
if ($notification->getMessage() !== null) {
$messageDecode = base64_decode($notification->getMessage(), true);
}
if ($messageDecode !== null) {
/** @var NotificationForwardCommand $message */
$message = unserialize($messageDecode, []);

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.1.0, PHP 8.1, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.4.0, PHP 8.1, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.6.0, PHP 8.1, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.2.0, PHP 8.1, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.5.0, PHP 8.1, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.4.0, PHP 8.1, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.2.0, PHP 8.1, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.0.0, PHP 8.1, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.0.0, PHP 8.1, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.6.0, PHP 8.1, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.7.3, PHP 8.1, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.3.0, PHP 8.1, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.1.0, PHP 8.1, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.5.0, PHP 8.1, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.3.0, PHP 8.1, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.0.0, PHP 8.2, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.3.0, PHP 8.2, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.5.0, PHP 8.2, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.7.3, PHP 8.2, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.0.0, PHP 8.2, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.7.3, PHP 8.1, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.1.0, PHP 8.2, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.3.0, PHP 8.2, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.4.0, PHP 8.2, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.5.0, PHP 8.2, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.2.0, PHP 8.2, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.6.0, PHP 8.2, MySQL 5.7

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.1.0, PHP 8.2, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.2.0, PHP 8.2, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.4.0, PHP 8.2, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.6.0, PHP 8.2, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

Check failure on line 42 in src/Components/ResendNotifyHandler/ResendNotifyHandler.php

View workflow job for this annotation

GitHub Actions / SW v6.5.7.3, PHP 8.2, MySQL 8.0

Parameter #1 $data of function unserialize expects string, string|false given.

$this->notificationForwardHandler->handle($message, true);
$this->notificationQueueRepository->delete([['id' => $notification->getId()]], Context::createDefaultContext());
}
}

echo 'current time: ' . $currentDate->format(Defaults::STORAGE_DATE_TIME_FORMAT) . "\n";
}
}

0 comments on commit 3df76a3

Please sign in to comment.