lint/style/require-fopen-binary-flag
Not in any set. Unsafe fix: it can change behaviour.
What it does
The flags in fopen calls must omit t, and b must be omitted or included consistently.
Configuration
[lint.rules]
"style/require-fopen-binary-flag" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
b-mode |
bool |
Any | true |
b_mode |
Replaces
fopen_flags(php-cs-fixer, risky)