Add return Ruleset instance to Ruleset->GET() and Ruleset->POST() #17

Merged
vlw merged 1 commit from refs/pull/17/head into master 2024-11-28 18:05:18 +01:00
vlw commented 2024-11-28 18:04:08 +01:00 (Migrated from codeberg.org)

Quick PR that adds return values to Ruleset->GET() and Ruleset->POST() to allow for method chaining with for example Ruleset->validate_or_exit(). This can come handy for streamlining simple rulesets.

Example

$ruleset->GET(new Rules("something")->type(Type::STRING))->validate_or_exit();
Quick PR that adds return values to `Ruleset->GET()` and `Ruleset->POST()` to allow for method chaining with for example `Ruleset->validate_or_exit()`. This can come handy for streamlining simple rulesets. # Example ```php $ruleset->GET(new Rules("something")->type(Type::STRING))->validate_or_exit(); ```
Sign in to join this conversation.
No description provided.