diff --git a/src/contracts/Sets/ibexa-50.php b/src/contracts/Sets/ibexa-50.php index fd2c335..8eff9d9 100644 --- a/src/contracts/Sets/ibexa-50.php +++ b/src/contracts/Sets/ibexa-50.php @@ -114,4 +114,11 @@ ], ] ); + + $rectorConfig->ruleWithConfiguration( + RenameClassRector::class, + [ + 'Ibexa\Cart\Money\MoneyFactory' => 'Ibexa\ProductCatalog\Money\IntlMoneyFactory', + ] + ); }; diff --git a/tests/lib/Sets/Ibexa50/Fixture/cart_money_factory.php.inc b/tests/lib/Sets/Ibexa50/Fixture/cart_money_factory.php.inc new file mode 100644 index 0000000..c46d257 --- /dev/null +++ b/tests/lib/Sets/Ibexa50/Fixture/cart_money_factory.php.inc @@ -0,0 +1,43 @@ +moneyFactory = $moneyFactory; + } + + public function fooBar(MoneyFactory $moneyFactory): void + { + } +} + +?> +----- +moneyFactory = $moneyFactory; + } + + public function fooBar(IntlMoneyFactory $moneyFactory): void + { + } +} + +?>