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

Commit b14970f

Browse files
committed
Support more optional 3.29 features
1 parent 257fd8a commit b14970f

File tree

3 files changed

+51
-51
lines changed

3 files changed

+51
-51
lines changed

.hhconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ disallow_unsafe_comparisons=true
66
decl_override_require_hint=true
77
enable_experimental_tc_features=shape_field_check,sealed_classes
88
forward_compatibility_level=3.29
9+
user_attributes=
10+
disable_primitive_refinement=true
11+
disallow_stringish_magic=true

composer.lock

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

src/CodegenShapeMember.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ public function getType(): string {
4242
return $this->type->render();
4343
}
4444

45-
invariant($this->type !== null, "Somehow type is null");
46-
invariant(is_string($this->type), "Somehow type is not a string");
47-
return $this->type;
45+
return $this->type as string;
4846
}
4947
}

0 commit comments

Comments
 (0)