This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles/config/cursor/rules/php-errors.mdc
T
2026-07-26 11:55:16 +02:00

11 lines
340 B
Plaintext

---
alwaysApply: false
---
# Errors & Exceptions
- Never suppress errors with @.
- Throw domain-specific exceptions; do not return error strings.
- Catch only what you can handle; rethrow with previous exception.
- Use Value Objects for validation; avoid silent defaults.
- Log unexpected exceptions once at the edge (middleware/handler).