Skip to content

Commit

Permalink
fix help uri for online help
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Dec 1, 2024
1 parent 92ab4b1 commit 5a2d678
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Application/Extension/Reporter/SarifReporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ final class SarifReporter extends Reporter implements
private const PHP_VERSIONS = [
'50', '51', '52', '53', '54', '55', '56',
'70', '71', '72', '73', '74',
'80', '81', '82', '83',
'80', '81', '82', '83', '84',
];

/**
Expand Down Expand Up @@ -213,7 +213,7 @@ public function getRules(): Generator
yield sprintf('CA%2d00', $phpVer) => [
'name' => substr(strrchr(get_class($this), '\\'), 1),
'fullDescription' => 'PHP minimum requirement',
'helpUri' => '%baseHelpUri%/01_Components/03_Sniffs/Features/#php-' . $phpVer,
'helpUri' => '%baseHelpUri%/components/sniffs/PHP' . $phpVer,
'messages' => [
'default' => "File '{0}' requires at least PHP "
. sprintf('%1s.%1s', $phpVer[0], $phpVer[1])
Expand All @@ -227,7 +227,7 @@ public function getRules(): Generator
*/
private function buildRulesList(string $id, array $definition): ReportingDescriptor
{
$baseHelpUri = 'https://llaville.github.io/php-compatinfo';
$baseHelpUri = 'https://llaville.github.io/php-compatinfo/7.2/';

$rule = new ReportingDescriptor();
$rule->setId($id);
Expand Down

0 comments on commit 5a2d678

Please sign in to comment.