
fopen_flags
¶The flags in fopen
calls must omit t
, and b
must be omitted or
included consistently.
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:
Using the @PhpCsFixer:risky rule set will enable the fopen_flags
rule with the config below:
['b_mode' => false]
Using the @Symfony:risky rule set will enable the fopen_flags
rule with the config below:
['b_mode' => false]