Skip to content

Commit

Permalink
Added rector rule to replace SearchResult::count by SearchResult::tot…
Browse files Browse the repository at this point in the history
…alCount (#23)
  • Loading branch information
wiewiurdp authored Feb 24, 2025
1 parent f50dd9d commit 61cfd60
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/contracts/Sets/ibexa-50.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,15 @@
'Ibexa\\Solr\\Query\\Content\\CriterionVisitor\\Field' => 'Ibexa\\Solr\\Query\\Common\\CriterionVisitor\\Field',
]
);

$rectorConfig->ruleWithConfiguration(
RenamePropertyRector::class,
[
new RenameProperty(
'Ibexa\Contracts\Core\Repository\Values\Content\Trash\SearchResult',
'count',
'totalCount',
),
]
);
};

0 comments on commit 61cfd60

Please sign in to comment.