File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,6 +131,9 @@ composer dev-tools tests -- --coverage=.dev-tools/coverage
131131- Keep child-process environment policy centralized in ` ProcessQueue `
132132 configurators, including disabling Xdebug for non-coverage subprocesses while
133133 preserving coverage drivers when PCOV is unavailable.
134+ - Prefer the project-approved ` Safe\* ` function imports whenever replacing or
135+ adding native PHP calls that have Safe equivalents, so Rector does not have
136+ to rewrite them during commit checks.
134137
135138** Naming Conventions:**
136139
Original file line number Diff line number Diff line change 2727use Symfony \Component \Console \Output \OutputInterface ;
2828use Symfony \Component \Console \Output \StreamOutput ;
2929
30+ use function Safe \fopen ;
31+ use function Safe \fclose ;
32+
3033#[CoversClass(OutputCapabilityDetector::class)]
3134final class OutputCapabilityDetectorTest extends TestCase
3235{
@@ -69,7 +72,9 @@ public function doesNotSupportAnsiForPlainNonTtyStreamOutput(): void
6972 self ::assertIsResource ($ stream );
7073
7174 try {
72- self ::assertFalse ((new OutputCapabilityDetector ())->supportsAnsi (new StreamOutput ($ stream )));
75+ self ::assertFalse (
76+ (new OutputCapabilityDetector ())->supportsAnsi (new StreamOutput ($ stream , decorated: false ))
77+ );
7378 } finally {
7479 fclose ($ stream );
7580 }
You can’t perform that action at this time.
0 commit comments