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

Commit

Permalink
Match "typedef" as a kind in the fallback handler (#62)
Browse files Browse the repository at this point in the history
* Match "typedef" as a kind in the fallback handler

This switch cause a RuntimeException for not being exhaustive.

* Comment typo, wrong env var
  • Loading branch information
lexidor authored Nov 9, 2020
1 parent e8408ca commit 9fbe10a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HHClientFallbackHandler.hack
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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':
Expand Down

0 comments on commit 9fbe10a

Please sign in to comment.