Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 135b92e

Browse files
author
danielbannert
committed
disable fopen_flags fixers
1 parent e26bc29 commit 135b92e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Config.php

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ public function getRules(): array
7272
'php_unit_test_case_static_method_calls' => [
7373
'call_type' => 'static',
7474
],
75+
'fopen_flags' => false,
76+
'fopen_flag_order' => false,
7577
];
7678

7779
$pedroTrollerRules = [

tests/ConfigTest.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ public function providerDoesNotHaveFixerEnabled(): array
173173
'psr0' => 'we are using PSR-4',
174174
'no_homoglyph_names' => 'renames classes and cannot rename the files. You might have string references to renamed code (``$$name``)',
175175
'simplified_null_return' => 'it changes behaviour on void return',
176+
177+
'fopen_flags' => 'it changes r+b to b+r and w+b and b+w',
178+
'fopen_flag_order' => 'it changes r+b to b+r and w+b and b+w',
176179
];
177180

178181
$fixers = \array_merge($contribFixers, $symfonyFixers);
@@ -436,8 +439,8 @@ private function getSymfonyRules(): array
436439
],
437440
'function_to_constant' => true,
438441
'function_typehint_space' => true,
439-
'fopen_flags' => true,
440-
'fopen_flag_order' => true,
442+
'fopen_flags' => false,
443+
'fopen_flag_order' => false,
441444
'heredoc_to_nowdoc' => true,
442445
'is_null' => true,
443446
'implode_call' => true,

0 commit comments

Comments
 (0)