Skip to content

Commit e2b8ae9

Browse files
committed
Update .hhconfig
1 parent 41bc8e5 commit e2b8ae9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.hhconfig

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ allowed_decl_fixme_codes=1002,2001,2050,2053,2071,3012,3015,4030,4032,4035,4047,
44
allowed_fixme_codes_strict=1002,2001,2011,2025,2049,2050,2053,2071,2105,3012,3015,4005,4006,4009,4011,4026,4027,4030,4032,4035,4047,4051,4053,4057,4060,4062,4063,4064,4070,4101,4104,4106,4107,4108,4110,4112,4117,4119,4128,4135,4138,4163,4165,4188,4193,4224,4240,4249,4250,4281,4297,4298,4318,4321,4323,4324,4337,4341,4343,4370,4371,4372,4390
55
allowed_fixme_codes_partial=1002,2001,2011,2025,2049,2050,2053,2071,2105,3012,3015,4005,4006,4009,4011,4026,4027,4030,4032,4035,4047,4051,4053,4057,4060,4062,4063,4064,4070,4101,4104,4106,4107,4108,4110,4112,4117,4119,4128,4135,4138,4163,4165,4188,4193,4224,4240,4249,4250,4281,4297,4298,4318,4321,4323,4324,4337,4341,4343,4370,4371,4372,4390
66
enable_xhp_class_modifier=true
7-
disable_xhp_element_mangling=true
7+
disable_xhp_element_mangling=true
8+
disallow_hash_comments=true
9+
enable_strict_string_concat_interp=true

src/Codegen/Constraints/UntypedBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public function getMergedAllOfChecks(): ?TSchema {
273273
// Disgusting hack: let's just rewind the entire root directory
274274
if (Str\starts_with($prop['$ref'], '#')) {
275275
// Ref in the same file
276-
$prop_root = $resolved_root_directory.'/'.$resolved_context->getCurrentRefFileName();
276+
$prop_root = $resolved_root_directory.'/'.($resolved_context->getCurrentRefFileName() ?? '');
277277
} else {
278278
// External file containing ref
279279
$prop_root = $resolved_root_directory.'/';

src/Constraints/ArrayConstraint.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function check(mixed $input, string $pointer, bool $coerce): vec<m
2626

2727
$spec = TypeSpec\vec(TypeSpec\mixed());
2828
try {
29-
# To allow for either PHP or hack arrays, we coerce to a vec here.
29+
// To allow for either PHP or hack arrays, we coerce to a vec here.
3030
return $spec->coerceType($input);
3131
} catch (TypeCoercionException $e) {
3232
$error = shape(

0 commit comments

Comments
 (0)