From 14539efb5a8953b3428e39cbcbcb5461256e9008 Mon Sep 17 00:00:00 2001 From: jjergus Date: Tue, 8 Jun 2021 14:23:11 -0700 Subject: [PATCH] fix is_compatible_schema_version.hack --- src/__Private/is_compatible_schema_version.hack | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/__Private/is_compatible_schema_version.hack b/src/__Private/is_compatible_schema_version.hack index b0e0ad5b4..99ba4a5dc 100644 --- a/src/__Private/is_compatible_schema_version.hack +++ b/src/__Private/is_compatible_schema_version.hack @@ -21,7 +21,7 @@ use const Facebook\HHAST\SCHEMA_VERSION; */ function is_compatible_schema_version(string $other_version): bool { invariant( - SCHEMA_VERSION === '2021-03-24-0001', + SCHEMA_VERSION === '2021-06-04-0001', '%s needs updating', __FILE__, ); @@ -31,8 +31,10 @@ function is_compatible_schema_version(string $other_version): bool { // Return true if $other_version is a subset of SCHEMA_VERSION switch ($other_version) { + /* Example: case '2021-05-20-0001': // removes DefineExpression (unused) return true; + */ default: return false; }