EricSantoso Thank you for sharing the issue with us.
This seems correct since you cannot override a function with a more specialized type (Cake\ORM\RulesChecker
< Cake\Datasource\RulesChecker
).
If you try the code in PHP 8+, does it run without error?