Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 969e904

Browse files
committed
support additional experimental typechecker options
1 parent fb23a83 commit 969e904

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

.hhconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
assume_php=false
2-
enable_experimental_tc_features = no_fallback_in_namespaces
2+
enable_experimental_tc_features = no_fallback_in_namespaces, unpacking_check_arity, disallow_refs_in_array, disallow_untyped_lambda_as_non_function_type
33
safe_array = true
44
safe_vector_array = true
5+
disallow_destruct = true
56

67
# ignore HHAST as:
78
# - otherwise, we get a circular dependency

composer.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/_Private/difference_render_fast.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ function coalesce<T>(?T $_head, ?T ...$rest): ?T {
204204
*
205205
* Will take `?T ...$args` when HHVM 3.12 support is dropped.
206206
*/
207-
function coalescex<T>(?T $_head, ?T ...$_rest): T {
208-
$result = coalesce(...\func_get_args());
207+
function coalescex<T>(?T $head, ?T ...$rest): T {
208+
$result = coalesce($head, ...$rest);
209209
invariant($result !== null, 'All arguments were null');
210210
return $result;
211211
}

0 commit comments

Comments
 (0)