Skip to content

Commit 029ccfc

Browse files
CS fix
1 parent 3bf0805 commit 029ccfc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Dumper/AbstractDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function setOutput($output)
7070
$this->lineDumper = $output;
7171
} else {
7272
if (\is_string($output)) {
73-
$output = fopen($output, 'wb');
73+
$output = fopen($output, 'w');
7474
}
7575
$this->outputStream = $output;
7676
$this->lineDumper = [$this, 'echoLine'];
@@ -130,7 +130,7 @@ public function dump(Data $data, $output = null)
130130
}
131131

132132
if ($returnDump = true === $output) {
133-
$output = fopen('php://memory', 'r+b');
133+
$output = fopen('php://memory', 'r+');
134134
}
135135
if ($output) {
136136
$prevOutput = $this->setOutput($output);

Dumper/CliDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ protected function supportsColors()
540540
}
541541

542542
$h = stream_get_meta_data($this->outputStream) + ['wrapper_type' => null];
543-
$h = 'Output' === $h['stream_type'] && 'PHP' === $h['wrapper_type'] ? fopen('php://stdout', 'wb') : $this->outputStream;
543+
$h = 'Output' === $h['stream_type'] && 'PHP' === $h['wrapper_type'] ? fopen('php://stdout', 'w') : $this->outputStream;
544544

545545
return static::$defaultColors = $this->hasColorSupport($h);
546546
}

Tests/Dumper/HtmlDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function testCharset()
141141

142142
public function testAppend()
143143
{
144-
$out = fopen('php://memory', 'r+b');
144+
$out = fopen('php://memory', 'r+');
145145

146146
$dumper = new HtmlDumper();
147147
$dumper->setDumpHeader('<foo></foo>');

0 commit comments

Comments
 (0)