Skip to content

Commit

Permalink
Added rector rule to replace ContentType::isContainer property to method
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszKolankowski committed Feb 25, 2025
1 parent f5cf01f commit b78038b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/contracts/Sets/ibexa-50.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,22 @@
'replace_with' => 'Ibexa\Contracts\Core\Variation\VariationPathGenerator',
]
);

$rectorConfig->ruleWithConfiguration(PropertyToGetterRector::class, [
'Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType' => [
'isContainer' => 'isContainer',
],
]);

$rectorConfig->ruleWithConfiguration(PropertyToGetterRector::class, [
'Ibexa\Contracts\Core\Repository\Values\ContentType\ContentTypeDraft' => [
'isContainer' => 'isContainer',
],
]);

$rectorConfig->ruleWithConfiguration(PropertyToGetterRector::class, [
'Ibexa\Core\Repository\Values\ContentType\ContentTypeDraft' => [
'isContainer' => 'isContainer',
],
]);
};

0 comments on commit b78038b

Please sign in to comment.