From 90aa909b7f67544ae385897d264cf399356b209d Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Thu, 13 Feb 2025 22:42:40 +0500 Subject: [PATCH] Fix incorrect property access in CompletionChecker Corrected the property access from array syntax to object syntax for `$hash->field` in the `CompletionChecker.php` file. This ensures proper handling of fields and prevents potential runtime errors. --- .../ProjectTranslationServiceHash/CompletionChecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/application/app/Services/ProjectTranslationServiceHash/CompletionChecker.php b/app/application/app/Services/ProjectTranslationServiceHash/CompletionChecker.php index 0dff37c..164c507 100644 --- a/app/application/app/Services/ProjectTranslationServiceHash/CompletionChecker.php +++ b/app/application/app/Services/ProjectTranslationServiceHash/CompletionChecker.php @@ -30,7 +30,7 @@ final readonly class CompletionChecker $isWaiting = true; $hashSuccessIds[] = $hash->id; } - $hashStatusWaiting->add($hash['field'], $isWaiting); + $hashStatusWaiting->add($hash->field, $isWaiting); } $this->commandHandler->handleSetStatusById($hashSuccessIds, Status::Success);