From 9fbe10a1a11783085f3165cceb102b67af403aca Mon Sep 17 00:00:00 2001 From: Lexidor Digital <31805625+lexidor@users.noreply.github.com> Date: Tue, 10 Nov 2020 00:44:33 +0100 Subject: [PATCH] Match "typedef" as a kind in the fallback handler (#62) * Match "typedef" as a kind in the fallback handler This switch cause a RuntimeException for not being exhaustive. * Comment typo, wrong env var --- src/HHClientFallbackHandler.hack | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HHClientFallbackHandler.hack b/src/HHClientFallbackHandler.hack index d808262..c3c5cdc 100644 --- a/src/HHClientFallbackHandler.hack +++ b/src/HHClientFallbackHandler.hack @@ -17,7 +17,7 @@ use namespace HH\Lib\{C, Str, Vec}; * This caches the results in APC (falling back to a file) to provide fast * workflows. * - * Does nothing if CI, TRAVIS, or CONTINOUS_INTEGRATION is true. + * Does nothing if CI, TRAVIS, or CONTINUOUS_INTEGRATION is true. */ class HHClientFallbackHandler extends FailureHandler { private AutoloadMap $map; @@ -204,6 +204,7 @@ class HHClientFallbackHandler extends FailureHandler { $this->map['class'][\strtolower($name)] = $path; break; case 'type': + case 'typedef': $this->map['type'][\strtolower($name)] = $path; break; case 'function':