Skip to content

Commit 28f719a

Browse files
lexidorazjezz
authored andcommitted
const_default_func_args (#2)
1 parent df0e56b commit 28f719a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.hhconfig

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ safe_array = true
33
safe_vector_array = true
44
unsafe_rx = false
55
ignored_paths = [ "vendor/.+/tests/.+", "vendor/.+/bin/.+" ]
6+
const_default_func_args = true

src/Nuxed/Filesystem/File.hack

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ final class File extends Node {
118118

119119
public static async function temporary(
120120
string $perfix,
121-
string $directory = \sys_get_temp_dir(),
121+
?string $directory = null,
122122
): Awaitable<File> {
123+
$directory ??= \sys_get_temp_dir();
123124
$folder = new Folder($directory);
124125
if (!$folder->exists()) {
125126
await $folder->create();

0 commit comments

Comments
 (0)