From f9be839294448daf3a770385a20fabddaf0dee5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Tue, 10 Sep 2024 10:56:36 +0200 Subject: [PATCH] Cast language ID to integer --- bundle/Command/ScheduledVisibilityUpdateCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/Command/ScheduledVisibilityUpdateCommand.php b/bundle/Command/ScheduledVisibilityUpdateCommand.php index ea38235..3618498 100644 --- a/bundle/Command/ScheduledVisibilityUpdateCommand.php +++ b/bundle/Command/ScheduledVisibilityUpdateCommand.php @@ -146,7 +146,7 @@ private function processResults(array $results, ProgressBar $progressBar): void { foreach ($results as $result) { try { - $languageId = $result['initial_language_id']; + $languageId = (int) $result['initial_language_id']; $language = $this->loadLanguage($languageId); } catch (NotFoundException $exception) { $this->logger->error(