Skip to content

Commit

Permalink
FRW-7400 Upgraded PHPStan to 1.10.*. (#10911)
Browse files Browse the repository at this point in the history
FRW-7400 Update PHPStan to 1.10.*
  • Loading branch information
olhalivitchuk authored May 6, 2024
1 parent f816bd3 commit 3e57ba1
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,18 @@ public function findActiveCompanyUserIdsByCustomerId(int $idCustomer): array
$companyUserQuery->filterByIsActive(true);
}

$companyUserQuery->filterByFkCustomer($idCustomer)
/** @var \Propel\Runtime\Collection\ArrayCollection $companyUserIds */
$companyUserIds = $companyUserQuery->filterByFkCustomer($idCustomer)
->joinCompany()
->useCompanyQuery()
->filterByIsActive(true)
->filterByStatus(SpyCompanyTableMap::COL_STATUS_APPROVED)
->endUse()
->orderByIdCompanyUser()
->select(SpyCompanyUserTableMap::COL_ID_COMPANY_USER);
->select(SpyCompanyUserTableMap::COL_ID_COMPANY_USER)
->find();

return $companyUserQuery->find()->toArray();
return $companyUserIds->toArray();
}

/**
Expand Down

0 comments on commit 3e57ba1

Please sign in to comment.