Replace isValid() calls with assert()

There's more value on showing how `assert()` displays the validation
messages than simply showing if `isValid()` returns `true` or `false`.

However, that increases the chances of having outdated documentation, so
I created a doc linter that updates the Markdown files with the
correct message.
This commit is contained in:
Henrique Moody 2026-01-06 14:12:06 +01:00
commit d2198dfd01
No known key found for this signature in database
GPG key ID: 221E9281655813A6
165 changed files with 1748 additions and 623 deletions

View file

@ -5,7 +5,11 @@
Validates if a file is an executable.
```php
v::executable()->isValid('script.sh'); // true
v::executable()->assert('/path/to/file');
// → "/path/to/file" must be an executable file
v::executable()->assert('/path/to/executable');
// Validation passes successfully
```
## Templates