Skip to content

Commit

Permalink
Support more optional 3.29 features
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Oct 19, 2018
1 parent 257fd8a commit b14970f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 51 deletions.
3 changes: 3 additions & 0 deletions .hhconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ disallow_unsafe_comparisons=true
decl_override_require_hint=true
enable_experimental_tc_features=shape_field_check,sealed_classes
forward_compatibility_level=3.29
user_attributes=
disable_primitive_refinement=true
disallow_stringish_magic=true
95 changes: 47 additions & 48 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/CodegenShapeMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ public function getType(): string {
return $this->type->render();
}

invariant($this->type !== null, "Somehow type is null");
invariant(is_string($this->type), "Somehow type is not a string");
return $this->type;
return $this->type as string;
}
}

0 comments on commit b14970f

Please sign in to comment.