From b2bed25467c7205239b1a281c9e897d0cc4ab06c Mon Sep 17 00:00:00 2001 From: vlw Date: Wed, 20 Nov 2024 10:37:10 +0000 Subject: [PATCH] doc(feat): add Ruleset->validate_or_exit() to README docs --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 70d30f0..934da68 100644 --- a/README.md +++ b/README.md @@ -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