Skip to content

Commit b8b0dc9

Browse files
committed
fix tests
1 parent 7dcb8c4 commit b8b0dc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/fs/FsContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function workWithFile(FsDestination $destination, string $mode, callable
108108
});
109109

110110
try {
111-
$file = fopen($destination->getFileInfo(), $mode);
111+
$file = fopen((string) $destination->getFileInfo(), $mode);
112112
$this->lock->lock($destination);
113113

114114
return call_user_func($callback, $destination, $file);

pkg/fs/FsProducer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function send(PsrDestination $destination, PsrMessage $message): void
4141

4242
$this->context->workWithFile($destination, 'a+', function (FsDestination $destination, $file) use ($message) {
4343
$fileInfo = $destination->getFileInfo();
44-
if ($fileInfo instanceof TempFile && false == file_exists($fileInfo)) {
44+
if ($fileInfo instanceof TempFile && false == file_exists((string) $fileInfo)) {
4545
return;
4646
}
4747

0 commit comments

Comments
 (0)