lint/pest/prefer-to-be-url
In the lint-strict preset. In Rector’s pest/coding-style set. Needs the pest extension. Unsafe fix: it can change behavior.
What it does
Converts filter_var($url, FILTER_VALIDATE_URL) checks to toBeUrl() matcher
Configuration
[lint.rules]
"pest/prefer-to-be-url" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
UseToBeUrl(pest-plugin-rector)