doc(feat): add Ruleset->validate_or_exit() to README docs

This commit is contained in:
Victor Westerlund 2024-11-20 10:37:10 +00:00
parent d6accce069
commit b2bed25467

View file

@ -71,6 +71,8 @@ Ruleset->get_errors();
Use `Ruleset->is_valid(): bool` to quickly check if any errors are set.
You can also use `Ruleset->validate_or_exit(): true|Response` to automatically return a `Reflect\Response` with all errors to current STDOUT if validation fails.
# Installation
Install with composer