From 61cfd60db1da4fbd639aaaafc1ce7e118ccb5717 Mon Sep 17 00:00:00 2001 From: Mateusz Kolankowski Date: Mon, 24 Feb 2025 19:47:50 +0100 Subject: [PATCH] Added rector rule to replace SearchResult::count by SearchResult::totalCount (#23) --- src/contracts/Sets/ibexa-50.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/contracts/Sets/ibexa-50.php b/src/contracts/Sets/ibexa-50.php index 9d1477f..1af9b03 100644 --- a/src/contracts/Sets/ibexa-50.php +++ b/src/contracts/Sets/ibexa-50.php @@ -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', + ), + ] + ); };