#!/usr/bin/php
<?php
// @phan-file-suppress PhanPluginRemoveDebugAny
if (PHP_VERSION_ID < 80100) {
    fwrite(STDERR, "ERROR: Phan 6.x requires PHP 8.1+, but it is being run with PHP " . PHP_VERSION . PHP_EOL);
    fwrite(STDERR, "PHP 8.0 reached its end of life in November 2023." . PHP_EOL);
    fwrite(STDERR, "Exiting without analyzing code." . PHP_EOL);
    exit(1);
}
require_once __DIR__ . '/src/phan.php';
