Skip to content

Commit

Permalink
be friendly with 3.30
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Dec 14, 2018
1 parent 649b8b3 commit 6b63710
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 38 deletions.
1 change: 0 additions & 1 deletion .hhconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ disallow_non_arraykey_keys=true
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
66 changes: 33 additions & 33 deletions composer.lock

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

2 changes: 1 addition & 1 deletion examples/dorm/codegen.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion examples/dorm/demo/demo_usage.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh // strict
<?hh
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion src/CodegenClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ final public function addDeclComment(string $comment): this {
* it will be inferred from the constructor if set.
*/
public function addConstructorWrapperFunc(
?Traversable<string> $params = null,
?Container<string> $params = null,
): this {
// Check if parameters are specified explicitly
$param_full = null;
Expand Down
2 changes: 1 addition & 1 deletion src/IHackCodegenConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace Facebook\HackCodegen;

interface IHackCodegenConfig {
public function getFileHeader(): ?Traversable<string>;
public function getFileHeader(): ?Container<string>;

public function getSpacesPerIndentation(): int;
public function getMaxLineLength(): int;
Expand Down

0 comments on commit 6b63710

Please sign in to comment.