Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
schema update - manual changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Oct 7, 2020
1 parent 7269dd1 commit 3944c2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Linters/PreferLambdasLinter.hack
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ final class PreferLambdasLinter extends AutoFixingASTLinter {
$left_paren,
$parameters,
$right_paren,
// capabilities are not supported by anonymous functions
/* capability = */ null,
$colon,
$type,
);
Expand Down
6 changes: 4 additions & 2 deletions src/__Private/is_compatible_schema_version.hack
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use const Facebook\HHAST\SCHEMA_VERSION;
*/
function is_compatible_schema_version(string $other_version): bool {
invariant(
SCHEMA_VERSION === '2020-10-01-0000',
SCHEMA_VERSION === '2020-10-02-0000',
'%s needs updating',
__FILE__,
);
Expand All @@ -32,8 +32,10 @@ function is_compatible_schema_version(string $other_version): bool {
// Return true if $other_version is a subset of SCHEMA_VERSION

switch ($other_version) {
/*
// preceding versions:
case '2020-10-01-0000':
return true;
/*
case 'version-number': // missing ...
// succeeding versions:
case 'version-number': // missing ...
Expand Down

0 comments on commit 3944c2f

Please sign in to comment.