Skip to content

Commit

Permalink
[0.2.x] Support Promise v3
Browse files Browse the repository at this point in the history
Brings support for Promise v3 to the filesystem package.
  • Loading branch information
WyriHaximus committed Jan 29, 2024
1 parent ca5e06f commit ea6211d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"require": {
"php": ">=7.4.0",
"react/event-loop": "^1.2",
"react/promise": "^2.8",
"react/promise": "^3 || ^2.8",
"react/promise-stream": "^1.2",
"react/stream": "^1.2"
},
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Eio/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private function closeOpenFile($fileDescriptor): PromiseInterface
try {
\eio_close($fileDescriptor, \EIO_PRI_DEFAULT, function () use ($resolve): void {
$this->deactivate();
$resolve();
$resolve(true);
});
} catch (\Throwable $error) {
$this->deactivate();
Expand Down

0 comments on commit ea6211d

Please sign in to comment.