mirror of
https://codeberg.org/reflect/reflect-rules-plugin.git
synced 2025-09-14 08:53:42 +02:00
feat(doc): add default() to README
This commit is contained in:
parent
9a525e45c7
commit
6760bac254
1 changed files with 6 additions and 0 deletions
|
@ -125,6 +125,12 @@ Any value that isn't an empty string will cause the `type()` rule to fail.
|
|||
> [!IMPORTANT]
|
||||
> This coercion is only applies for `Ruleset->GET()`. `Ruleset->POST()` will enforce the real `null` value since it's JSON
|
||||
|
||||
## `default()`
|
||||
```php
|
||||
Rules->default(mixed);
|
||||
```
|
||||
Set superglobal property to a defined default value if the property was not provided in superglobal scope
|
||||
|
||||
## `min()`
|
||||
```php
|
||||
Rules->min(?int = null);
|
||||
|
|
Loading…
Add table
Reference in a new issue