Skip to content

Commit 7674e37

Browse files
committed
bump hsl-experimental to 4.37
1 parent be38d52 commit 7674e37

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"require": {
1717
"hhvm": "^4.25",
1818
"hhvm/hsl": "^4.25",
19-
"hhvm/hsl-experimental": "^4.31"
19+
"hhvm/hsl-experimental": "^4.37"
2020
},
2121
"require-dev": {
2222
"facebook/fbexpect": "^2.7",
@@ -34,4 +34,4 @@
3434
"test": "hacktest tests/",
3535
"type-check": "hh_client src/"
3636
}
37-
}
37+
}

src/Nuxed/Filesystem/File.hack

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use namespace HH\Lib\Str;
44
use namespace HH\Lib\Experimental\File;
55

66
final class File extends Node {
7-
public function getReadHandle(): File\NonDisposableReadHandle {
7+
public function getReadHandle(): File\CloseableReadHandle {
88
$this->isAvailable();
99
$this->isReadable();
1010

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

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

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

0 commit comments

Comments
 (0)