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

Commit

Permalink
add compatible schema version (2020-11-02-0001)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjergus authored and fredemmott committed Nov 9, 2020
1 parent ef14d3d commit 8c290db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions src/__Private/is_compatible_schema_version.hack
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ function is_compatible_schema_version(string $other_version): bool {

switch ($other_version) {
// preceding versions:
case '2020-10-15-0001':
case '2020-10-15-0001': // missing enum-dependent type syntax
return true;
/*
// succeeding versions:
case 'version-number': // missing ...
case '2020-11-02-0001': // removes Pocket Universe syntax
return true;
*/
default:
return false;
}
Expand Down
6 changes: 2 additions & 4 deletions tests/PocketAtomExpressionLinterTest.hack
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ final class PocketAtomExpressionLinterTest extends TestCase {
use LinterTestTrait;

protected function getLinter(string $file): PocketAtomExpressionLinter {
if (\version_compare(\HHVM_VERSION, '4.23.0') < 0) {
self::markTestSkipped(
'Pocket Universe tests are only relevant on HHVM 4.23+',
);
if (\HHVM_VERSION_ID >= 408300) {
self::markTestSkipped('Pocket Universe syntax was removed in HHVM 4.83');
}
return PocketAtomExpressionLinter::fromPath($file);
}
Expand Down
6 changes: 2 additions & 4 deletions tests/PocketIdentifierExpressionLinterTest.hack
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ final class PocketIdentifierExpressionLinterTest extends TestCase {
protected function getLinter(
string $file,
): PocketIdentifierExpressionLinter {
if (\version_compare(\HHVM_VERSION, '4.23.0') < 0) {
self::markTestSkipped(
'Pocket Universe tests are only relevant on HHVM 4.23+',
);
if (\HHVM_VERSION_ID >= 408300) {
self::markTestSkipped('Pocket Universe syntax was removed in HHVM 4.83');
}
return PocketIdentifierExpressionLinter::fromPath($file);
}
Expand Down

0 comments on commit 8c290db

Please sign in to comment.