rules-plugin/src
Victor Westerlund aa7d969350 feat: add return Ruleset instance to Ruleset->GET() and Ruleset->POST() (#17)
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();
```

Reviewed-on: https://codeberg.org/reflect/reflect-rules-plugin/pulls/17
2024-11-28 17:05:16 +00:00
..
Rules.php fix: typehint for eval_array with POST data (#12) 2024-01-17 12:03:11 +01:00
Ruleset.php feat: add return Ruleset instance to Ruleset->GET() and Ruleset->POST() (#17) 2024-11-28 17:05:16 +00:00