mirror of
https://codeberg.org/reflect/reflect-rules-plugin.git
synced 2025-09-14 00:43:42 +02:00
doc(feat): add Ruleset->validate_or_exit() to README docs
This commit is contained in:
parent
d6accce069
commit
b2bed25467
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue