mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 16:59:45 +01:00
22 lines
459 B
PHP
Executable File
22 lines
459 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Psalm\Config\IssueHandler;
|
|
|
|
require_once(dirname(__DIR__) . '/vendor/autoload.php');
|
|
|
|
$issue_types = IssueHandler::getAllIssueTypes();
|
|
|
|
$shortcodes = array_map(
|
|
function ($issue_type): int {
|
|
$issue_class = '\\Psalm\\Issue\\' . $issue_type;
|
|
/** @var int */
|
|
return $issue_class::SHORTCODE;
|
|
},
|
|
$issue_types,
|
|
);
|
|
|
|
echo 'Max used shortcode: ' . max($shortcodes) . PHP_EOL;
|