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
).
![](https://community.devsense.com/assets/files/2024-05-29/1716985506-13808-image.png)
If you try the code in PHP 8+, does it run without error?