- Don't use too many comments unless there is something non-obvious going on.
- In general, use DTOs over arrays of data when consuming data from APIs. Saloon has first-party support for casting responses to DTOs, if you need help understanding it, check their documentation.
- When implementing DTOs, use the simplest approach that works - plain PHP objects are often sufficient.
- Follow existing code formatting and naming conventions in the project.
- Check if the project has a code formatter/linter and use it before submitting changes.
- If you are building a new feature or refactoring, be absolutely certain to run the tests before telling me you are done.
- When the tests relating to your feature are passing, make sure to also run the entire test suite to ensure you didn't break other tests.