The flags in fopen
calls must omit t
, and b
must be omitted or
included consistently.
Risky when the function fopen
is overridden.
The b
flag must be used (true
) or omitted (false
).
Allowed types: bool
Default value: true
Default configuration.
--- Original
+++ New
<?php
-$a = fopen($foo, 'rwt');
+$a = fopen($foo, 'rwb');
With configuration: ['b_mode' => false]
.
--- Original
+++ New
<?php
-$a = fopen($foo, 'rwt');
+$a = fopen($foo, 'rw');
The rule is part of the following rule sets:
@PhpCsFixer:risky with config:
['b_mode' => false]
@Symfony:risky with config:
['b_mode' => false]