ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
NoLegacySyntaxHighlighterUsagesRule.php
Go to the documentation of this file.
1
<?
php
2
19
namespace
ILIAS\CI\PHPStan\Rules
;
20
21
use PHPStan\Reflection\ReflectionProvider;
22
use PHPStan\Rules\Rule;
23
use PhpParser\Node;
24
use PHPStan\Analyser\Scope;
25
use PHPStan\Rules\RuleErrorBuilder;
26
27
class
NoLegacySyntaxHighlighterUsagesRule
extends
LegacyClassUsageRule
implements Rule
28
{
29
protected
function
getHumanReadableRuleName
(): string
30
{
31
return
'Legacy Syntax Highlighter Usages'
;
32
}
33
34
protected
function
getRelevantILIASVersion
(): int
35
{
36
return
10;
37
}
38
39
40
protected
function
getForbiddenClasses
(): array
41
{
42
return
[
'ilSyntaxHighlighter'
];
43
}
44
}
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\CI\PHPStan\Rules\LegacyClassUsageRule
Definition:
LegacyClassUsageRule.php:29
ILIAS\CI\PHPStan\Rules\NoLegacySyntaxHighlighterUsagesRule
Definition:
NoLegacySyntaxHighlighterUsagesRule.php:28
ILIAS\CI\PHPStan\Rules\NoLegacySyntaxHighlighterUsagesRule\getRelevantILIASVersion
getRelevantILIASVersion()
Definition:
NoLegacySyntaxHighlighterUsagesRule.php:34
ILIAS\CI\PHPStan\Rules\NoLegacySyntaxHighlighterUsagesRule\getHumanReadableRuleName
getHumanReadableRuleName()
Definition:
NoLegacySyntaxHighlighterUsagesRule.php:29
ILIAS\CI\PHPStan\Rules\NoLegacySyntaxHighlighterUsagesRule\getForbiddenClasses
getForbiddenClasses()
Definition:
NoLegacySyntaxHighlighterUsagesRule.php:40
ILIAS\CI\PHPStan\Rules
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
LegacyClassUsageRule.php:19
CI
PHPStan
Rules
NoLegacySyntaxHighlighterUsagesRule.php
Generated on Sat Oct 4 2025 21:00:43 for ILIAS by
1.9.4 (using
Doxyfile
)