Skip to content

Commit

Permalink
bump hsl-experimental to 4.37
Browse files Browse the repository at this point in the history
  • Loading branch information
azjezz committed Dec 19, 2019
1 parent be38d52 commit 7674e37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"require": {
"hhvm": "^4.25",
"hhvm/hsl": "^4.25",
"hhvm/hsl-experimental": "^4.31"
"hhvm/hsl-experimental": "^4.37"
},
"require-dev": {
"facebook/fbexpect": "^2.7",
Expand All @@ -34,4 +34,4 @@
"test": "hacktest tests/",
"type-check": "hh_client src/"
}
}
}
6 changes: 3 additions & 3 deletions src/Nuxed/Filesystem/File.hack
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use namespace HH\Lib\Str;
use namespace HH\Lib\Experimental\File;

final class File extends Node {
public function getReadHandle(): File\NonDisposableReadHandle {
public function getReadHandle(): File\CloseableReadHandle {
$this->isAvailable();
$this->isReadable();

Expand All @@ -24,7 +24,7 @@ final class File extends Node {

public function getWriteHandle(
File\WriteMode $mode = File\WriteMode::OPEN_OR_CREATE,
): File\NonDisposableWriteHandle {
): File\CloseableWriteHandle {
if ($mode === File\WriteMode::MUST_CREATE && $this->exists()) {
throw new Exception\ExistingNodeException(Str\format(
'Cannot re-create file (%s) for writing.',
Expand Down Expand Up @@ -69,7 +69,7 @@ final class File extends Node {

public function getReadWriteHandle(
File\WriteMode $mode = File\WriteMode::OPEN_OR_CREATE,
): File\NonDisposableReadWriteHandle {
): File\CloseableReadWriteHandle {
if ($mode === File\WriteMode::MUST_CREATE && $this->exists()) {
throw new Exception\ExistingNodeException(Str\format(
'Cannot re-create file (%s) for writing.',
Expand Down

0 comments on commit 7674e37

Please sign in to comment.