Skip to content

Commit

Permalink
Merge pull request #116 from WyriHaximus-labs/0.2.x-promise-v3
Browse files Browse the repository at this point in the history
[0.2.x] Support Promise v3
  • Loading branch information
clue committed Mar 26, 2024
2 parents ca5e06f + ea6211d commit 385933f
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 385933f

Please sign in to comment.