Skip to content

Commit

Permalink
Updated as per suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: John Linhart <admin@escope.cz>
  • Loading branch information
shinde-rahul and escopecz committed Jan 2, 2023
1 parent 5e97b18 commit d13f971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/bundles/LeadBundle/Entity/LeadCategoryRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getLeadCategories(Lead $lead)
/**
* @param string[] $types
*
* @return mixed[]
* @return array<int,array{'id': string, "title": string, "alias": string, "bundle": string}>
*/
public function getSubscribedAndNewCategories(Lead $lead, array $types): array
{
Expand Down
3 changes: 1 addition & 2 deletions app/bundles/LeadBundle/Model/LeadModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -1266,12 +1266,11 @@ public function getLeadCategories(Lead $lead)
/**
* @param string[] $types
*
* @return mixed[]
* @return array<string,string>
*/
public function getSubscribedAndNewCategories(Lead $lead, array $types): array
{
$leadCategories = $this->getLeadCategoryRepository()->getSubscribedAndNewCategories($lead, $types);
dump($leadCategories);

$leadCategoryList = [];
foreach ($leadCategories as $category) {
Expand Down

0 comments on commit d13f971

Please sign in to comment.