Skip to content

Commit

Permalink
Cast language ID to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 10, 2024
1 parent 1170c45 commit f9be839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundle/Command/ScheduledVisibilityUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f9be839

Please sign in to comment.