ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
NoLegacyToolbarUsagesRule.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\Scripts\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
NoLegacyToolbarUsagesRule
extends
LegacyClassUsageRule
implements Rule
28
{
29
protected
function
getHumanReadableRuleName
(): string
30
{
31
return
'Legacy Toolbar Usages'
;
32
}
33
34
protected
function
getRelevantILIASVersion
():
int
35
{
36
return
10;
37
}
38
39
protected
function
getForbiddenClasses
(): array
40
{
41
return
[
'ilToolbarGUI'
];
42
}
43
44
protected
function
findMethodUsages
(): bool
45
{
46
return
true
;
47
}
48
}
ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule
Definition:
LegacyClassUsageRule.php:29
ILIAS\Scripts\PHPStan\Rules\NoLegacyToolbarUsagesRule
Definition:
NoLegacyToolbarUsagesRule.php:28
ILIAS\Scripts\PHPStan\Rules\NoLegacyToolbarUsagesRule\getHumanReadableRuleName
getHumanReadableRuleName()
Definition:
NoLegacyToolbarUsagesRule.php:29
ILIAS\Scripts\PHPStan\Rules\NoLegacyToolbarUsagesRule\getForbiddenClasses
getForbiddenClasses()
Definition:
NoLegacyToolbarUsagesRule.php:39
ILIAS\Scripts\PHPStan\Rules\NoLegacyToolbarUsagesRule\getRelevantILIASVersion
getRelevantILIASVersion()
Definition:
NoLegacyToolbarUsagesRule.php:34
ILIAS\Scripts\PHPStan\Rules\NoLegacyToolbarUsagesRule\findMethodUsages
findMethodUsages()
Definition:
NoLegacyToolbarUsagesRule.php:44
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\Scripts\PHPStan\Rules
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
LegacyClassUsageRule.php:19
scripts
PHPStan
Rules
NoLegacyToolbarUsagesRule.php
Generated on Sun Oct 19 2025 23:04:55 for ILIAS by
1.9.4 (using
Doxyfile
)