Skip to content

Commit 27eff2a

Browse files
CS fix
1 parent dd23275 commit 27eff2a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

DataCollector/DumpDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public function getDumpsCount()
194194

195195
public function getDumps($format, $maxDepthLimit = -1, $maxItemsPerDepth = -1)
196196
{
197-
$data = fopen('php://memory', 'r+b');
197+
$data = fopen('php://memory', 'r+');
198198

199199
if ('html' === $format) {
200200
$dumper = new HtmlDumper($data, $this->charset);

HttpCache/Store.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function lock(Request $request)
6969
if (!file_exists(\dirname($path)) && false === @mkdir(\dirname($path), 0777, true) && !is_dir(\dirname($path))) {
7070
return $path;
7171
}
72-
$h = fopen($path, 'cb');
72+
$h = fopen($path, 'c');
7373
if (!flock($h, \LOCK_EX | \LOCK_NB)) {
7474
fclose($h);
7575

@@ -114,7 +114,7 @@ public function isLocked(Request $request)
114114
return false;
115115
}
116116

117-
$h = fopen($path, 'rb');
117+
$h = fopen($path, 'r');
118118
flock($h, \LOCK_EX | \LOCK_NB, $wouldBlock);
119119
flock($h, \LOCK_UN); // release the lock we just acquired
120120
fclose($h);
@@ -379,7 +379,7 @@ private function save(string $key, string $data, bool $overwrite = true): bool
379379
}
380380

381381
$tmpFile = tempnam(\dirname($path), basename($path));
382-
if (false === $fp = @fopen($tmpFile, 'wb')) {
382+
if (false === $fp = @fopen($tmpFile, 'w')) {
383383
@unlink($tmpFile);
384384

385385
return false;

0 commit comments

Comments
 (0)