diff --git a/src/lint/linter/ArcanistBaseXHPASTLinter.php b/src/lint/linter/ArcanistBaseXHPASTLinter.php index a89ba9bc..694e4853 100644 --- a/src/lint/linter/ArcanistBaseXHPASTLinter.php +++ b/src/lint/linter/ArcanistBaseXHPASTLinter.php @@ -14,9 +14,9 @@ abstract class ArcanistBaseXHPASTLinter extends ArcanistFutureLinter { $parts[] = $this->getVersion(); - $path = xhpast_get_binary_path(); - if (Filesystem::pathExists($path)) { - $parts[] = md5_file($path); + $version = PhutilXHPASTBinary::getVersion(); + if ($version) { + $parts[] = $version; } return implode('-', $parts);